aspose file tools*
The moose likes Beginning Java and the fly likes ANT is not working due to some java problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ANT is not working due to some java problem" Watch "ANT is not working due to some java problem" New topic
Author

ANT is not working due to some java problem

Harishree Nair
Greenhorn

Joined: Feb 17, 2005
Posts: 4
I have set <ANT_HOME> and classpath properly but still when i am running ant i am getting this error can anybody tell me what i have to do


C:\Documents and Settings\shreehp>ant
java.lang.InstantiationException: org.apache.tools.ant.Main
at java.lang.Class.newInstance0(Class.java:293)
at java.lang.Class.newInstance(Class.java:261)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:195)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Do you have more than one version of ant.jar on your machine?

Try unsetting your CLASSPATH before running ant.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243
Hi Java Pati,

Im sure its not your real name.... change your name buddy....

For your problem...
Refer this thread...

Its certainly a classpath issue...
 
wood burning stoves
 
subject: ANT is not working due to some java problem