Hi, Thanks for the code. But still my problem is not solved. First of all where to put the code (i.e HelloLucene.java ). I have put it in lucene-3.0.3/src/demo/org/apache/lucene/demo Then to run I am doing java org.apache.lucene.demo.HelloLucene.
Even it did javac HelloLucene.java but getting error. My classpath is set i.e. /usr/lib/jvm/java-6-sun/lib: /home/ravi/Desktop/sw/lucene-3.0.3/lucene-core-3.0.3.jar: /home/ravi/Desktop/sw/lucene-3.0.3/lucene-demos-3.0.3.jar -- View this message in context: http://lucene.472066.n3.nabble.com/Writing-new-peice-of-code-in-Lucene-tp2956161p2956458.html Sent from the Lucene - General mailing list archive at Nabble.com.