ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mickeydog <mickey...@taosnet.com>
Subject NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
Date Thu, 07 Apr 2005 14:29:45 GMT
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


Mime
View raw message