tushar S Kulkarni wrote:
Yes classpath has weblogic.jar file? but weblogic.jar file is necessary for ANT?weblogic.jar contains weblogic ant tasks, but it also contains an old implementation of ant.
In particular it contains the class org.apache.tools.ant.Main. The laucher class in ant 1.6.*
trys to create an instance of org.apache.tools.ant.Main, but this does not work as the ant 1.5 version
of Main does not have the same constructor. Please remove weblogic.jar from your classpath - or
better still, do not have a classpath.
Peter
On Thu, 19 May 2005 Peter Reilly wrote :
Does your CLASSPATH contain weblogic.jar? Peter
tushar S Kulkarni wrote:
Hi, Thanks for your replies, My OS is Win 2000 professional, After setting path to bin dir and classpath to lib dir the previous error ant is not recognized....command is gone but I am getting 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:195) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
How to fix this?
On Thu, 19 May 2005 Rich Harris wrote :
Which OS is this?
For UNIX: ANT_HOME=/ant_directory JAVA_HOME=/java_directory PATH=$PATH:$ANT_HOME:$JAVA_HOME
For Windows: ANT_HOME=c:\ant_directory (or wherever) JAVA_HOME=c:\java_directory (or wherever) PATH=%ANT_HOME%\bin;%JAVA_HOME\bin%
Then try it in the shell that those are set in.
If that doesn't work, no idea.
R _____________________________________ Rich Harris Release/Configuration Engineer [EMAIL PROTECTED] 650-616-6866
Shopping.com(tm), Inc. Find. Compare. Buy. www.shopping.com
-----Original Message----- From: tushar S Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 10:55 AM To: Ant Users List Subject: Re: Re: ANT Configuration
I have path set to ANT_HOME\bin But still no luck! Also classpath is set to ANT_HOME\lib
On Wed, 18 May 2005 Jeffrey E Care wrote :
The same way you would resolve this error for any other script or executable: make sure that the thing you are trying to run is on the PATH.
-- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis
"tushar S Kulkarni" <[EMAIL PROTECTED]> wrote on 05/18/2005 04:06:51 AM:
Hi I have a problem with configuring ant 1.6.2. I have set ANT_HOME in path but still it doesnt work. I get error message 'ant' is not recognized as an internal or external command, operable program or batch file. How to resolve this error?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]