Hello,
I am trying to build lucene and need ant to do it. I get the following error message
Exception in thread "main" java.lang.NoClassDefFoundE
rror: org.apache.tools.ant.launc
h.Launcher
at gnu.java.lang.MainThread.r
un(libgcj.
so.8rh)
Caused by: java.lang.ClassNotFoundExc
eption: org.apache.tools.ant.launc
h.Launcher
not found in gnu.gcj.runtime.SystemClas
sLoader{ur
ls=[file:/
usr/bin/bu
ild-classp
ath,file:/
usr/lib/jv
m/java/lib
/tools.jar
], parent=gnu.gcj.runtime.Ext
ensionClas
sLoader{ur
ls=[], parent=null}}
at java.net.URLClassLoader.fi
ndClass(li
bgcj.so.8r
h)
at gnu.gcj.runtime.SystemClas
sLoader.fi
ndClass(li
bgcj.so.8r
h)
at java.lang.ClassLoader.load
Class(libg
cj.so.8rh)
at java.lang.ClassLoader.load
Class(libg
cj.so.8rh)
at gnu.java.lang.MainThread.r
un(libgcj.
so.8rh)
The ant web site in the FAQ gives this description of what a likely cause is...
I installed Ant 1.6.x and now get Exception in thread "main" java.lang.NoClassDefFoundE
rror:
The cause of this is that there is an old version of ant somewhere in the class path or configuration.
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
OK......so....how do I fix the class path?????? For points please tell me exactly what to do since I am new to linux....like how do I clear it out and set to the new one...the dummies version to solving the problem
Start Free Trial