Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with running ant

Status
Not open for further replies.

nkmb

Programmer
May 10, 2006
33
US
Hi all,

While i am running build.xml.I am getting the following error

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:245)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

anybody please help me to get through the problem.


thanks,
nkmb.
 
Well, how are you running your build.xml?

Tim
 
Hi Tim,

I am using the following command for running build.xml

asant all

Could u please reply me as soon as possible.



thanks,
nkmb.
 
I run ant on a windows platform and I have the bin folder, which resides within the ant installation, in my path.

I then simply go to the location of my build.xml file in a command shell and type
Code:
ant
to run the default task within it. If I don't want the default task, then I would use
Code:
ant [i]specificTask[/i]
instead.

Tim
 
Hi,

I had already set the PATH to bin,and i went to the location of my build.xml.And typed

ant


but still i am getting the same error.


thanks,
nkmb
 
Hi,

My problem is fixed.After setting the path to weblogic ant.


thanks,
bhavani
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top