> > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/tools/ant/Main > Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Main > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >
Your java interpreter is not able to find org.apache.tools.ant.Main class. You have to add ant.jar to classpath when you run the java. Can you provide the full command which throws this exception? > worked fine.but while trying to recompile it i got the error.Although i > have > also reinstalled jdk as well as ant but still the same error is keep on How did you install java and ant? -Sree Pratheep. _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
