Re: Lucene Newbie Question

From: Erik Hatcher <esh6h_at_nyob>
Date: Thu, 11 Jan 2007 15:07:34 -0500
To: CODE4LIB_at_listserv.nd.edu
On Jan 11, 2007, at 2:54 PM, Erik Hatcher wrote:
> On Jan 11, 2007, at 12:10 PM, Andrew Darby wrote:
>
>> Thanks Erik and Bess.  Erik:  Lamentably, your
>>
>> java -cp lucene-core-2.0.0.jar:lucene-demos-2.0.0.jar
>> org.apache.lucene.demo.IndexFiles src/
>>
>> threw the same error.
>
> That is probably due to your environment CLASSPATH (I told you it was
> trouble! :).  Remove that environment variable altogether, or set it
> to blank, or at least remove all the Lucene JARs from it, and all
> should be well.

Also, in case you copied my exact example, (I noticed you're on
Windows) you'll need to adjust the path separator from : to ; between
the two JARs in the -cp switch.  That might be the issue rather than
CLASSPATH, come to think of it.

        Erik
Received on Thu Jan 11 2007 - 14:09:37 EST