ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: org/apache/tools/ant/launch/Launcher
Date Thu, 10 Jun 2004 07:28:04 GMT
1) you do not need to put $ANT_HOME/lib in your classpath
2) If at all possible, do not set CLASSPATH to anything, setting
    CLASSPATH has been and will be one of the major causes
    of configuration problems with ant.

It is most likely that your CLASSPATH contains an older
version of ant causing the strange message.

Peter
rajesh k wrote:

>Mani,
>The following are the settings I made:
> 
>export ANT_HOME=/home/msomipal/tmp/apache-ant-1.6.1
>export PATH=$ANT_HOME/bin:$PATH
>export CLASSPATH=$ANT_HOME/lib:$CLASSPATH
>
>Exception in thread "main"
>java.lang.NoClassDefFoundError: org/apache/tools/ant/
>launch/Launcher
>
>I tried unsetting the CLASSPATH. 
>
>Thanks,
>Rajesh
>
>"Mani G. Iyer" <iyer@rcn.com> wrote:
>Rajesh:
>Is /usr/bin the first path in your PATH env variable?
>Just to make sure,
>put $ANT_HOME/bin as the first path in your PATH env
>variable. Let me
>know how that goes. 
>mani
>
>-----Original Message-----
>From: rajesh k [mailto:rajesh_ant1234@yahoo.com] 
>Sent: Wednesday, June 09, 2004 3:13 PM
>To: user@ant.apache.org
>Subject: org/apache/tools/ant/launch/Launcher
>
>Hi,
>I am getting the following error:
>
>I downloaded ant 1.6.1
>and set the environment variables ANT_HOME, PATH,
>JAVA_HOME .
>When I run the command ant, I get the following error.
>Is there anything I am missing.
>
>Exception in thread "main"
>java.lang.NoClassDefFoundError:
>org/apache/tools/ant/launch/Launcher
>
>I used Ant on many development boxes. This problem
>seems to be specific to that box only.
>
>There is an old version of ant installed in /usr/bin.
>
>Any help is greatly appreciated.
>
>Thanks,
>Rajesh
>
>
>
>
>__________________________________
>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
>
>
>
>	
>		
>__________________________________
>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