ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sachit aggarwal" <sachit_aggar...@hotmail.com>
Subject How to call ant from java
Date Tue, 01 Mar 2005 12:24:34 GMT
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.

Mime
View raw message