Hi Dhivya, It'd be a wise step to upgrade to a more recent lucene release. 2.9 (though that does not mean that the issue you encountered was because of that) would be ideal I'd say, but could also try 2.4.
-- Anshum Gupta Naukri Labs! http://ai-cafe.blogspot.com The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw............ On Mon, Oct 26, 2009 at 12:06 PM, DHIVYA M <dhivyakrishna...@yahoo.com>wrote: > Sir/Mam, > > Am M.Dhivya, learning about apache lucene [Java]. > > I have installed JDK-6 update 4 and NetBeans-6.5.1 > > I downloaded the lucene-1.9-final.zip file and followed the steps given in > docs to run the demo. > > The extracted lucene-1.9-final folder from the downloaded zip file is in > D:\ > and the lucene-core-1.9-final.jar , lucene-demos-1.9-final.jar and src is > in > > D:\lucene-1.9-final\ > > As said i have set the classpath in environment variable PATH in System > properties as, > D:\lucene-1.9-final\lucene-core-1.9-final.jar; > D:\lucene-1.9-final\lucene-demos-1.9-final.jar; > > Then in the command prompt i gave the command, > D:\lucene-1.9-final>java org.apache.lucene.demo.IndexFiles > d:\lucene-1.9-final\src > > But got the following error: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/lucene/dem > o/IndexFiles > Caused by: java.lang.ClassNotFoundException: > org.apache.lucene.demo.IndexFiles > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > > Am a beginner just started to learn about lucene by my own interest after > knowing about its value. But now am scared as the things are totally blind > for me. I went in through all the forums but couldnt find the solution. I > couldnt find out where am missing or my procedure to run lucene demo is > wrong. Kindly let me know a solution for which am struggling for past one > week. > > Thanks in advance > M.Dhivya > > >