which os u are using? it it linux? Setting the classpath free you from saving the file anywhere..........
The error shows that u have not set the proper classpath. On 5/18/11, ravishekhar [via Lucene] <ml-node+2956458-1170531492-146...@n3.nabble.com> wrote: > > > 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 > > > > > _______________________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://lucene.472066.n3.nabble.com/Writing-new-peice-of-code-in-Lucene-tp2956161p2956458.html > To start a new topic under Lucene - General, email > ml-node+642108-1580214077-146...@n3.nabble.com > To unsubscribe from Lucene - General, visit > http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=642108&code=YW51cmFnLml0LmpvbGx5QGdtYWlsLmNvbXw2NDIxMDh8LTIwOTgzNDQxOTY= -- Kumar Anurag ----- Kumar Anurag -- View this message in context: http://lucene.472066.n3.nabble.com/Writing-new-peice-of-code-in-Lucene-tp2956161p2956832.html Sent from the Lucene - General mailing list archive at Nabble.com.