ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Petrovay <>
Subject Run ant with java from Powershell
Date Wed, 09 Feb 2011 12:06:43 GMT

Did somebody manage to launch ant form the ant.jar with java? I cannot
make it work. I must include all the jars in a certain directory in
the classpath.

Using java 6, I tried:

java -cp "D:\Software\webtest\lib\*"

and I get:

Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
        at$ Source)
        at Method)
        at Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)

So, probably "D:\Software\webtest\lib\*" gets expanded using spaces
between the path items instead of columns (;).

Any ideas?


MSc Gabriel Petrovay
Mobile: +41(0)787978034

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message