java.lang.NoClassDefFoundError while using Ant
Applies to:
Ant 1.6.x
Description:
Occurs while using Apache Ant.
Cause:
You have installed Ant 1.6.x and now get Exception in thread “main” java.lang.NoClassDefFoundError. The cause of this is that there is an old version of ant somewhere in the class path or configuration.
JAVA-Tools , "exception in thread "main thread" java.lang.noclassdeffounderror: weblogic/nodemanager", "java.lang.noclassdeffounderror: weblogic/nodemanager", "main" java.lang.noclassdeffounderror ant, "noclassdeffounderror: weblogic/nodemanager", ant "main" java.lang.noclassdeffounderror, ant and java.lang.classnotfoundexception:, ant class-path exception in thread "main" java.lang.noclassdeffounderror, ant exception in thread "main" java.lang.noclassdeffounderror: :, ant exception java.lang.noclassdeffounderror, ant jar noclassdeffounderror main, ant java classpath noclassdeffounderror, ant java.lang.classnotfoundexception, ant java.lang.noclassdeffounderror, ant java.lang.noclassdeffounderror mysql, ant main noclassdeffounderror, ant noclassdefexception, ant noclassdeffounderror, ant noclassdeffounderror main in, ant noclassdeffounderror socket, ant service classnotfoundexception, ant unset classpath, ant version noclassdeffounderror, apache ant noclassdeffounderror, classnotfoundexception java.lang.noclassdeffounderror ant, classnotfoundexception jmfdiagnostics, classnotfoundexception jmfdiagostics, error, excepción: java.lang.classnotfoundexception jmfdiagnostics, exception in thread "main thread" java.lang.noclassdeffounderror: weblogic/deployer, exception in thread "main thread" java.lang.noclassdeffounderror: weblogic_home, exception in thread "main", exception in thread "main" java.lang.lang.noclassdeffounderror: health demo/jar, exception in thread "main" java.lang.noclassdeffounderror: weblogic/nodemanager, exception in thread main java.lang.noclassdeffounderror in socket, exception: java.lang.classnotfoundexception: jmf diagnostics, exception: java.lang.classnotfoundexception: jmfdiagnostics, i installed ant 1.6.x and now get exception in thread "main" java.lang.noclassdeffounderror:, j, jar .noclassdeffounderror ant, java ant noclassdeffounderror, java no class def found error-- using <java tag in ant, java.lang.classnotfoundexception while ant build, java.lang.classnotfoundexception: jmf diagnostics, java.lang.classnotfoundexception: jmfdiagnostic, java.lang.classnotfoundexception: jmfdiagnostics, java.lang.classnotfoundexception: jmfdiagnostics seven, java.lang.noclassdeffounderror, java.lang.noclassdeffounderror ant classpath, java.lang.noclassdeffounderror main class ant, java.lang.noclassdeffounderror while ant build, java.lang.noclassdeffounderror: ant, java.lang.noclassdeffounderror: weblogic.home$homesingleton, java] java.lang.noclassdeffounderror while using ant, jmf diagnostics classnotfound, jmf java.lang.classnotfoundexception: jmfdiagnostics, jmf no class found, jmfdiagnostics java.lang.classnotfoundexception: jmfdiagnostics, jmsclientexceptions noclassdeffounderror, lrm-00118: syntax error at '=' at the end of input, no class def found error ant, noclassdeffounderror, noclassdeffounderror ant db, snmp diagnostics unix classnotfoundexception, solution ant java.lang.noclassdeffounderror, solution to java.lang.classnotfoundexception jmf, solve noclassdeffounderror, suloton-ant, the cause of this is that there is an old version of ant somewhere in the class path or configuration, weblogic.home$home singleton java.lang.noclassdeffounderror
A version of this problem happens with jars that are in the classpath that include an embedded copy of ant classes. An example of this is some copies of weblogic.jar.
One can check if this is the case by doing (on unix/sh):
unset CLASSPATH
ant -version