ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ankuj Gupta <ankuj2...@gmail.com>
Subject Re: Problems while Installing Ant in fedora 9
Date Sat, 20 Mar 2010 06:09:36 GMT
Hi!!

Even after changing the path to

export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH

I am getting the following error when I try to install ant using

runant.pl

But I received following error.
java -classpath /usr/local/ant/lib/ant-launcher.jar
-Dant.home=/usr/local/ant org.apache.tools.ant.launch.Launcher
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher

> Caused by: java.lang.ClassNotFoundException:
> org.apache.tools.ant.launch.Launcher
>   at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)


Ankuj


On Sat, Mar 20, 2010 at 5:47 AM, Scot P. Floess <sfloess@nc.rr.com> wrote:

>
> I note from your PATH - you aren't adding $JAVA_HOME/bin to it...
>
> For example,
>
>
> export ANT_HOME=/usr/local/ant
> export JAVA_HOME=/usr/java/jdk1.6.0_18
> export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
>
> Note: the PATH statement includes both $JAVA_HOME/bin -and- $ANT_HOME/bin
>
> Might that be your problem?
>
> HTH,
>
> Flossy
>
>
>
> On Sat, 20 Mar 2010, Ankuj Gupta wrote:
>
>  Hi!!!
>> I was trying to install Ant in Fedora 9 . I had set the following
>> environment variables
>> export ANT_HOME=/usr/local/ant
>> # export JAVA_HOME=/usr/java/jdk1.6.0_18/
>> # export PATH=${PATH}:${ANT_HOME}/bin
>> # runant.pl
>>
>> But I received following error.
>> java -classpath /usr/local/ant/lib/ant-launcher.jar
>> -Dant.home=/usr/local/ant org.apache.tools.ant.launch.Launcher
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/tools/ant/launch/Launcher
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.tools.ant.launch.Launcher
>>   at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>>   at java.security.AccessController.doPrivileged(Native Method)
>>   at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>>   at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>>   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>>   at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>>   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
>>
>> I know it can be installed from yum but that points to gcj which I dont
>> want.
>>
>> Ankuj Gupta
>>
>>
> --
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC  27549
>
> 252-478-8087 (Home)
> 919-890-8117 (Work)
>
> Chief Architect JPlate   http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM  http://sourceforge.net/projects/javapim
>
> Architect Keros          http://sourceforge.net/projects/keros
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message