You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by sachit aggarwal <sa...@hotmail.com> on 2005/03/01 13:24:34 UTC
How to call ant from java
Hi
i am facing some problems in calling ant classes directly from
java code i.e. my code build succesfully but when i try to execute it throws
an exception:
Exception in thread "main" java.lang.NoClassDefFoundError: test (wrong name:
Test)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
i have attached my code with this file.
_________________________________________________________________
HP LaserJet 1010.
http://h50025.www5.hp.com/hpcom/in_en/10_35_88_1707overview.html Preferred
Printing Solutions.