as i said in the title:
i am using Java, but when I run the code on Eclipse, i get the following error..
Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/lucene/analysis/util/ResourceLoader
at Indexer.getIndexWriter(Indexer.java:38)
at Indexer.rebuildIndexes(Indexer.java:73)
at SolrIndexer.main(SolrIndexer.java:23)
Caused by: java.lang.ClassNotFoundException: org.apache.lucene.analysis.util.ResourceLoader
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
… 3 more
The SAD PART: the class org.apache.lucene.analysis.util.ResourceLoader is not available in Lucene 4.0/3.6/4.0-ALPHA. although, there are a few webpages where people are talking about the resourceloader class.
can anyone help me out here? Any help would be appreciated..
The common analysers have been move
lucene-analyzers-common-X.X.X.jaras a result of LUCENE-2510Ensure that you have it in your classpath.