-
why my 'ant' is not running (5 messages)
- Posted by: Maruthi Ram
- Posted on: May 02 2004 23:53 EDT
Hi,
After installing ant1.6.1 when i am trying to run the commant 'ant' it shows the following exception..
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:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
why??
Regards,
MaRu.Threaded Messages (5)
- why my 'ant' is not running by sho mak on May 03 2004 13:08 EDT
- why my 'ant' is not running by Maruthi Ram on May 03 2004 23:38 EDT
-
why my 'ant' is not running by Purvesh Vora on May 12 2004 11:21 EDT
-
why my 'ant' is not running by Maruthi Ram on May 12 2004 11:50 EDT
- Error in running ant by Nanda Shringeri on August 21 2012 03:05 EDT
-
why my 'ant' is not running by Maruthi Ram on May 12 2004 11:50 EDT
-
why my 'ant' is not running by Purvesh Vora on May 12 2004 11:21 EDT
- why my 'ant' is not running by Maruthi Ram on May 03 2004 23:38 EDT
-
why my 'ant' is not running[ Go to top ]
- Posted by: sho mak
- Posted on: May 03 2004 13:08 EDT
- in response to Maruthi Ram
Hi, After installing ant1.6.1 when i am trying to run the commant 'ant' it shows the following exception..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:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)why??Regards,MaRu.
Create a .bat file and set ant path where it is installed in it. like
set ANT_HOME=d:\jwsdp-1.3\apache-ant
set PATH=%PATH%;%ANT_HOME%\bin
and then go to the folder where you ant is and type ant. -
why my 'ant' is not running[ Go to top ]
- Posted by: Maruthi Ram
- Posted on: May 03 2004 23:38 EDT
- in response to sho mak
Still I am getting the same problem..
what to do :( -
why my 'ant' is not running[ Go to top ]
- Posted by: Purvesh Vora
- Posted on: May 12 2004 11:21 EDT
- in response to Maruthi Ram
I was also getting the same problem
Foll. worked for me..
http://forum.java.sun.com/thread.jsp?forum=7&thread=485924&tstart=60&trange=15
Quote:
"
Instead of unsetting the classpath , try to put
$ANT_HOME/lib
at the beginning of your classpath. I encountered the exact same problem under w2k and after setting the
classpath to CLASSPATH=$ANT_HOME/lib;$CLASSPATH; ant worked without errors :-). But it is necessary that you put the ANT-Path at the beginning of classpath. Any other JDK-Path at the beginning results in the described error....
"
Regards,
Purvesh -
why my 'ant' is not running[ Go to top ]
- Posted by: Maruthi Ram
- Posted on: May 12 2004 23:50 EDT
- in response to Purvesh Vora
ThanQ Purvesh Vora,
It is successfully working...
:]
MaRu. -
Error in running ant[ Go to top ]
- Posted by: Nanda Shringeri
- Posted on: August 21 2012 03:05 EDT
- in response to Maruthi Ram
Hello All,
I have sent path, ANT_HOME as well in my system. But still I am not able to run my ant. whenever I am running ant its giving error as
"Error occurred during initialization of VM Unable to load native library: Can't find dependent libraries"...
please anybody help me to fix this bug....thanks in advance