Cant get the Lucene Demo to work
2 posts in topic
Flat View  Flat View

Posted By:   alex_wong
Posted On:   Friday, November 29, 2002 03:20 AM

Hello All

I m a newbie to both Lucene and Java. Sorry if this question is a stupid one

I have added lucene.1-2.jar and lucene-demo.jar to my classpath.

When I try the demo and type in java org.apache.lucene.demo.IndexFiles{full-path-to-lucene}/src.

I get this error Exception in thread main java.lang.NoClassDefFoundError: org/apache/lucene/demo/IndexFiles.

Does anyone know how to solve this ?




Re: Cant get the Lucene Demo to work

Posted By:   TJ_Tee  
Posted On:   Sunday, December 22, 2002 09:30 PM

You need to have the .jar in your classpath.


SET CLASSPATH=C:jdk1.3.1in;C:lucenelucene-1.2.jar;C:lucenelucene-demos-1.2.jar

You could verified using :

C:/>set classpath

and see that your classpath is there.

Re: Cant get the Lucene Demo to work

Posted By:   Otis_Gospodnetic  
Posted On:   Sunday, December 1, 2002 12:01 PM

It looks like the Jar containing that class is not in your CLASSPATH, actually.
About | Sitemap | Contact