ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <khat...@axiomsystems.com>
Subject RE: NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
Date Thu, 07 Apr 2005 14:31:08 GMT
Possibly ANT_HOME is wrong.

Should be ANT_HOME=/usr/share/ant <== note, no /bin

Then you'll need to change your path so that it is ANT_HOME/bin and so
on.

Hope this helps
Keith


-----Original Message-----
From: mickeydog [mailto:mickeydog@taosnet.com] 
Sent: 07 April 2005 14:30
To: user@ant.apache.org
Subject: NoClassDefFoundError: org/apache/tools/ant/launch/Launcher


I am having trouble installing ANT.
I am getting the exception below.
I've tried various fixes, but no dice.
Any suggestions?

# ant -version
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher

# ant --noconfig -version
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher

# locate weblogic
/usr/local/eclipse/plugins/org.apache.ant_1.6.2/lib/ant-weblogic.jar
/usr/share/ant/lib/ant-weblogic.jar

# unset CLASSPATH
# /usr/share/ant/bin/ant --noconfig -version
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher

# unset PATH
# ant --noconfig -version
bash: ant: No such file or directory
# /usr/share/ant/bin/ant --noconfig -version
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher


In .bashrc, I have:

export JAVA_HOME=/usr/lib/jvm/java-1.4.2-sun
export ANT_HOME=/usr/share/ant/bin
PATH=$PATH:$HOME/bin:$JAVA_HOME:$ANT_HOME:

also tried:
PATH=$JAVA_HOME:$ANT_HOME:$PATH:$HOME/bin:
PATH=$ANT_HOME:$PATH:$HOME/bin:$JAVA_HOME:

I have only 1 version of ant installed.


---------------------------------------------------------------------
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