How to install Lucene 3.0.0 in Ubuntu 8.10

6k Views Asked by At

I have downloaded Lucene 3.0.0 and when I used the command java -jar lucene-core-3.0.0.jar in the directory where Lucene is present

I got this message

Failed to load Main-Class manifest attribute from lucene-core-3.0.0.jar

How do I proceed?

3

There are 3 best solutions below

0
On BEST ANSWER

Skaffman is correct. Here's a minimal Lucene application. If you want a self-contained search server, try Solr.

0
On

I am using lucene for information retrieval. you need to set the classpath after downloading lucene:

Setting up the environment in Linux

setenv LUCENEDIR /opt/lucene-2.4.1
setenv CLASSPATH .:./lucene-core-2.4.1.jar:
./lucene-demos-2.4.1.jar:./lukemin-0.9.2.jar:
$LUCENEDIR/lucene-core-2.4.1.jar:$LUCENEDIR/lucene-demos-2.4.1.jar:
$LUCENEDIR/lukemin-0.9.2.jar:$CLASSPATH
0
On

That error means that is not an executable jar. Perhaps you should put all the jars in your classpath, then start with the demo at http://lucene.apache.org/java/3_0_0/demo.html .