I’m new to lucene and is having trouble getting started.
Following the beginners guide at http://lucene.apache.org/java/3_3_0/demo.html i’m trying to set the classpath, copying the syntax from http://download.oracle.com/javase/1.3/docs/tooldocs/win32/classpath.html.
this is what I entered in the command line:
C:\Users\k>java -classpath C:\Users\k\Downloads\lucene-3.3.0\contrib\demo\lucene-demo-3.3.0.jar;C:\Users\k\Downloads\lucene-3.3.0\lucene-core-3.3.0.jar
It returns a list of options usable with the java keyword.
What am i doing wrong ?
You need something along the lines of
It looks like you set the classpath correctly, all you needed to do after that was
org.apache.lucene.demo.IndexFileswhich tells the JVM which is the main class of the application and-docs {path-to-lucene}/srcis an argument passed into the lucene demo.