hi

these days im trying to use ANT build tool.

but when runing a given example in ant documentation it will give an error

build process is success

when try to execute the following target

[COLOR=Sienna]<target name="run" depends="jar">
        <java jar="${jar.dir}/${ant.project.name}.jar" fork="true"/>
    </target>

it will give the following error

<target name="run" depends="jar">
        <java jar="${jar.dir}/${ant.project.name}.jar" fork="true"/>
    </target>

please any one can help me thanks.........!

You haven't posted the error message.

same kid posted the much the same thing a few days ago. He doesn't want to cooperate in solving his problem.

same kid posted the much the same thing a few days ago. He doesn't want to cooperate in solving his problem.

Yup, found that.

oh i am very sory...
this is the error


run:
[java] java.lang.NoClassDefFoundError: oata/HelloWorld
[java] Exception in thread "main"
[java] Java Result: 1

main:

BUILD SUCCESSFUL

thanks...

You didn't set up your classpath correctly inside the build xml.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.