You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Christoph Kukulies <ku...@gilberto.physik.rwth-aachen.de> on 2002/04/16 17:11:12 UTC

cannot get demo working

This might be a classpath problem or a file naming problem.
I cannot get the lucene demo working.

I have CLASSPATH=.;c:\jdk1.3.1_01;c:\jdk1.3.1_01\lib 
and put both, lucene-1.2-rc4.jar  lucene-demos-1_2-rc4.jar into 
c:\jdk1.3.1_01\lib

but I always get 
C:\lucene-1.2>java org.apache.lucene.demo.IndexFiles  <path>
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/dem
o/IndexFiles

I even tried with -cp "lucene-1.2-rc4.jar;lucene-demos-1_2-rc4.jar" ...
to no avail.

Any clues?

-- 
Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cannot get demo working

Posted by "Andrew C. Oliver" <ac...@apache.org>.
Christoph Kukulies wrote:

>This might be a classpath problem or a file naming problem.
>I cannot get the lucene demo working.
>
>I have CLASSPATH=.;c:\jdk1.3.1_01;c:\jdk1.3.1_01\lib 
>and put both, lucene-1.2-rc4.jar  lucene-demos-1_2-rc4.jar into 
>c:\jdk1.3.1_01\lib
>
>but I always get 
>C:\lucene-1.2>java org.apache.lucene.demo.IndexFiles  <path>
>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/dem
>o/IndexFiles
>
>I even tried with -cp "lucene-1.2-rc4.jar;lucene-demos-1_2-rc4.jar" ...
>to no avail.
>
>Any clues?
>
You must reference them directly in the classpath. 
 CLASSPATH=.;C:\mydir;C:\mydir\myjar.jar

Jar files are not picked up by directory references.  Anyhow this is 
getting a bit off topic.  More of a general java use question.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cannot get demo working

Posted by "Andrew C. Oliver" <ac...@apache.org>.
I struggled with how much detail to cover...eventually I decided to 
write it to the modertately experienced java programmer who had no 
lucene experience.  I'm open to alternative wording patches for anything 
in there.   (patch first ask questions later ;-) )

Christoph Kukulies wrote:

>On Tue, Apr 16, 2002 at 04:17:41PM +0100, Shaun Logue wrote:
>
>>You need to point to the jar file itself e.g.
>>CLASSPATH=.;c:\jdk1.3.1_01;c:\jdk1.3.1_01\lib\lucene-1.2-rc4.jar;c:\jdk1.3.1
>>_01\lib\lucene-demos-1_2-rc4.jar
>>I think this should work
>>
>
>Thanks. The demo works now.
>Sorry for this basic Java question, but "put it in your CLASSPATH"
>can mean to put it in the path or put it in the CLASSPATH variable.
>
>>
>>
>>
>>----- Original Message -----
>>From: "Christoph Kukulies" <ku...@gilberto.physik.rwth-aachen.de>
>>To: <lu...@jakarta.apache.org>
>>Sent: Tuesday, April 16, 2002 4:11 PM
>>Subject: cannot get demo working
>>
>>
>>>This might be a classpath problem or a file naming problem.
>>>I cannot get the lucene demo working.
>>>
>>>I have CLASSPATH=.;c:\jdk1.3.1_01;c:\jdk1.3.1_01\lib
>>>and put both, lucene-1.2-rc4.jar  lucene-demos-1_2-rc4.jar into
>>>c:\jdk1.3.1_01\lib
>>>
>>>but I always get
>>>C:\lucene-1.2>java org.apache.lucene.demo.IndexFiles  <path>
>>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>>
>>org/apache/lucene/dem
>>
>>>o/IndexFiles
>>>
>>>I even tried with -cp "lucene-1.2-rc4.jar;lucene-demos-1_2-rc4.jar" ...
>>>to no avail.
>>>
>>>Any clues?
>>>
>>>--
>>>Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>><ma...@jakarta.apache.org>
>>
>>>For additional commands, e-mail:
>>>
>><ma...@jakarta.apache.org>
>>
>>
>>--
>>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>>For additional commands, e-mail: <ma...@jakarta.apache.org>
>>
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cannot get demo working

Posted by Christoph Kukulies <ku...@gilberto.physik.rwth-aachen.de>.
On Tue, Apr 16, 2002 at 04:17:41PM +0100, Shaun Logue wrote:
> You need to point to the jar file itself e.g.
> CLASSPATH=.;c:\jdk1.3.1_01;c:\jdk1.3.1_01\lib\lucene-1.2-rc4.jar;c:\jdk1.3.1
> _01\lib\lucene-demos-1_2-rc4.jar
> I think this should work

Thanks. The demo works now.
Sorry for this basic Java question, but "put it in your CLASSPATH"
can mean to put it in the path or put it in the CLASSPATH variable.

> 
> 
> 
> 
> ----- Original Message -----
> From: "Christoph Kukulies" <ku...@gilberto.physik.rwth-aachen.de>
> To: <lu...@jakarta.apache.org>
> Sent: Tuesday, April 16, 2002 4:11 PM
> Subject: cannot get demo working
> 
> 
> > This might be a classpath problem or a file naming problem.
> > I cannot get the lucene demo working.
> >
> > I have CLASSPATH=.;c:\jdk1.3.1_01;c:\jdk1.3.1_01\lib
> > and put both, lucene-1.2-rc4.jar  lucene-demos-1_2-rc4.jar into
> > c:\jdk1.3.1_01\lib
> >
> > but I always get
> > C:\lucene-1.2>java org.apache.lucene.demo.IndexFiles  <path>
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/lucene/dem
> > o/IndexFiles
> >
> > I even tried with -cp "lucene-1.2-rc4.jar;lucene-demos-1_2-rc4.jar" ...
> > to no avail.
> >
> > Any clues?
> >
> > --
> > Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

-- 
Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cannot get demo working

Posted by Shaun Logue <sl...@network365.com>.
You need to point to the jar file itself e.g.
CLASSPATH=.;c:\jdk1.3.1_01;c:\jdk1.3.1_01\lib\lucene-1.2-rc4.jar;c:\jdk1.3.1
_01\lib\lucene-demos-1_2-rc4.jar
I think this should work




----- Original Message -----
From: "Christoph Kukulies" <ku...@gilberto.physik.rwth-aachen.de>
To: <lu...@jakarta.apache.org>
Sent: Tuesday, April 16, 2002 4:11 PM
Subject: cannot get demo working


> This might be a classpath problem or a file naming problem.
> I cannot get the lucene demo working.
>
> I have CLASSPATH=.;c:\jdk1.3.1_01;c:\jdk1.3.1_01\lib
> and put both, lucene-1.2-rc4.jar  lucene-demos-1_2-rc4.jar into
> c:\jdk1.3.1_01\lib
>
> but I always get
> C:\lucene-1.2>java org.apache.lucene.demo.IndexFiles  <path>
> Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/lucene/dem
> o/IndexFiles
>
> I even tried with -cp "lucene-1.2-rc4.jar;lucene-demos-1_2-rc4.jar" ...
> to no avail.
>
> Any clues?
>
> --
> Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>