×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

problem with running ant

problem with running ant

problem with running ant

(OP)
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.

RE: problem with running ant

Well, how are you running your build.xml?

Tim

RE: problem with running ant

(OP)
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.

RE: problem with running ant

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 specificTask
instead.

Tim

RE: problem with running ant

(OP)
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

RE: problem with running ant

(OP)
Hi,

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


thanks,
bhavani

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close