ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathy Zhou <kz...@cmdservices.com>
Subject RE: install ant 1.6.1 on Unix
Date Tue, 01 Jun 2004 19:05:50 GMT
Matt,
Thank you for your response.
I try ant --execdebug -version and got the same error.
java.lang.InstantiationException:  org.apache.tools.ant.Main
>         at java.lang.Class.newInstance0(Class.java:291)
>         at java.lang.Class.newInstance(Class.java:259)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

my setting on unix is


JAVA_HOME=/usr/j2se 
ANT_HOME=/usr/apache-ant-1.6.1
PATH=.:/usr/j2se/bin:/usr/apache-ant-1.6.1/bin:/bin:/lib:/usr/sbin:usr/bin:/usr/local/bin:/usr/ucb
export PATH


Everything is fine on window. I guess I still missed something on Unix setting. I did not
see anything wrong here, any idea? Thanks. 

Kathy

-----Original Message-----
From:	Matt Benson [SMTP:gudnabrsam@yahoo.com]
Sent:	Tuesday, June 01, 2004 2:50 PM
To:	Ant Users List
Subject:	Re: install ant 1.6.1 on Unix

Try running

ant --execdebug -version

This will show you exactly what command is being used
to invoke Ant.  That should give you some things to
check.

HTH,
Matt

--- Kathy Zhou <KZhou@cmdservices.com> wrote:
> I have installed the latest Ant on my window NT
> without any problem. 
> 
> Then I unzip the apache-ant-1.6.1-bin.zip downloaded
> on Unix (SunOS 5.8 with
> JDK1.4.1_03) and check the files. Based on
> installation instruction, I set
> path and ant_home on .profile. Now I got the
> following error while I typed
> ant -version.
> 
> java.lang.InstantiationException:
> org.apache.tools.ant.Main
>         at
> java.lang.Class.newInstance0(Class.java:291)
>         at
> java.lang.Class.newInstance(Class.java:259)
>         at
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>         at
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
>  
> 
> I do not have any crimson.jar or other XML parsers
> in JRE/ext  and I did set
> classpath for ant as it dose not need.
> 
> Do I need to reboot the Unix box? What else did I
> miss? Thank you for your
> help.
> 
> Kathy
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message