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
|