Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\sandeep>cd src
C:\sandeep\src>ant
Buildfile: build.xml
clean:
[delete] Deleting directory C:\sandeep\src\build
compile:
[mkdir] Created dir: C:\sandeep\src\build\classes
jar:
[mkdir] Created dir: C:\sandeep\src\build\jar
[jar] Building MANIFEST-only jar: C:\sandeep\src\build\jar\HelloWorld.jar
[jar] Building jar: C:\sandeep\src\build\jar\HelloWorld.jar
run:
[java] java.lang.NoClassDefFoundError: oata/HelloWorld
[java] Exception in thread "main"
[java] Java Result: 1
main:
BUILD SUCCESSFUL
Total time: 0 seconds
C:\sandeep\src>
i m trying to compile helloworld class
it is compiling fine and making a jar file
but not running
and gives error
[java] java.lang.NoClassDefFoundError: oata/HelloWorld i have already set my classpath
in src i have build.xml and oata package(hello world class)
please help me
i dont know why it is not working
i have included tools.jar in classpath