ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Powell <>
Subject Cannot get Ant to work. Error message is java.lang.InstantationException:
Date Mon, 19 Jul 2004 14:14:31 GMT

I've downloaded Ant twice (version 1.6.1 and 1.6.2).

My environment variables are:
CLASSPATH includes both c:\ant\lib and c:\ant\bin.
ANT_HOME is c:\ant
JAVA_HOME is c:\Program Files\Java\j2sdk1.4.2\

Other Java apps, like Poseidon, JBuilder, Eclipse and
JRun all work fine.

But I cannot get Ant to run.  I get this error message
every time:

    at java.lang.Class.newInstance0(
    at java.lang.Class.newInstance(

I have tried both the BIN distribution and the source
code distribution.  With the source code, I've used
the included build script. 

I have also tried compiling with both Eclipse and
JBuilder X -- both reported many compilation errors
(though I don't know enough Java to say the errors
were in the code and not how I organized the
projects).  When I tried to debug within Eclipse, I
basically got the same error message.

Any advice on how to get Ant working?

Also, it would be neat to understand how to get a
clean build in JBX or Eclipse (just to give the tools
a chance to build something more elaborate than
"Hello, World ... have a nice day!"


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

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

View raw message