Hi,
On Jan 26, 2008 8:30 AM, Eric Lease Morgan <[log in to unmask]> wrote:
> (Arg! Classpaths!)
>
> Please tell me why Java throws the NoClassDefFoundError error when I
> think I have set up my classpath correctly:
>
> $ pwd
> /home/eric/lucene
> $ ls -lh
> total 720K
> -rw-r--r-- 1 eric eric 650K 2008-01-26 08:30 lucene-core-2.3.0.jar
> -rw-r--r-- 1 eric eric 52K 2008-01-26 08:30 lucene-demos-2.3.0.jar
When dealing with JAR files, each entry in CLASSPATH should be the
full path to the JAR file, e.g.,
export CLASSPATH=/home/eric/lucene/lucene-core-2.3.0.jar:/home/eric/lucence/lucene-demos-2.3.0.jar
You use a plain directory as a CLASSPATH component only if you intend
to use .class files that has not been packaged up in a JAR.
Regards,
Galen Charlton
[log in to unmask] AKA [log in to unmask]
|