Hi All,
I am getting into Java + Lucene. To compile a Lucene program

CreateIndex.java

public class CreateIndex {
 // usage: CreateIndex index-directory
 public static void main(String[] args) throws Exception {
   String indexPath = args[0];
   IndexWriter writer;

   // An index is created by opening an IndexWriter with the
   // create argument set to true.
   writer = new IndexWriter(indexPath, null, true);
   writer.close();
 }
}

What CLASSPATH should I set? I currently have this:

/home/tomcat/lucene-2.0.0/lucene-core-2.0.0.jar

thanks!


**

*
*

Reply via email to