This does not look related to Apache Hadoop. Perhaps you want to post
this to the lucene's user lists?

On Fri, Dec 23, 2011 at 12:24 PM, Srinivas Surasani <[email protected]> wrote:
> When I am trying to run lucene example from command line, I get the
> following exception.
>
> [root@localhost lucene-3.4.0]# echo $CLASSPATH
> /root/lucene-3.4.0/lucene-core-3.4.0.jar:/root/lucene-3.4.0/contrib/demo/lucene-demo-3.4.0.jar:/usr/java/jdk1.6.0_26/lib
> [root@localhost lucene-3.4.0]# export JAVA_HOME=/usr/java/jdk1.6.0_26/
> [root@localhost lucene-3.4.0]# java org.apache.lucene.demo.IndexFiles -docs
> /root/lucene-3.4.0/contrib/demo/src/test/org/apache/lucene/demo/test-files/docs/
> Indexing to directory 'index'...
> Exception in thread "main" java.lang.NoSuchMethodError: method
> java.lang.Class.isAnonymousClass with signature ()Z was not found.
> at org.apache.lucene.analysis.Analyzer.assertFinal(Analyzer.java:57)
> at org.apache.lucene.analysis.Analyzer.<init>(Analyzer.java:45)
> at
> org.apache.lucene.analysis.ReusableAnalyzerBase.<init>(ReusableAnalyzerBase.java:39)
> at
> org.apache.lucene.analysis.StopwordAnalyzerBase.<init>(StopwordAnalyzerBase.java:60)
> at
> org.apache.lucene.analysis.standard.StandardAnalyzer.<init>(StandardAnalyzer.java:72)
> at
> org.apache.lucene.analysis.standard.StandardAnalyzer.<init>(StandardAnalyzer.java:82)
> at org.apache.lucene.demo.IndexFiles.main(IndexFiles.java:88)
>
>
> I appreciate your help.



-- 
Harsh J

Reply via email to