: I run "java org.apache.lucene.demo.IndexFiles {full-path-to-lucene}/src" and
: I got the below error.
: Exception in thread "main" java.lang.NoClassDefFoundError: IndexFiles/class
: Caused by: java.lang.ClassNotFoundException: IndexFiles.class
...
: Could not find the main class: IndexFiles.class. Program will exit.
1) please cut and paste exactly what you ran on your command line, and the
output you got back ... i suspect you aren't running exactly what you
think you are ... in all the JVMs i've seen that error (as you have
listed) should only happen if you tried to execute something like this...
chr...@asimov:~/lucene/java$ java IndexFiles.class src/
Exception in thread "main" java.lang.NoClassDefFoundError: IndexFiles/class
if you ran the command you have indicated, you should have (at worst)
gotten something like this...
chr...@asimov:~/lucene/java$ java org.apache.lucene.demo.IndexFiles src/
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/lucene/demo/IndexFiles
(note the full package path and the absense of "class")
2) since you are asking questions about using the Lucene java APIs, please
post any followup questions to the java-u...@lucene mailing list ... there
are going to be a lot more people subscribed there that can help you.
(gene...@lucene is a good starting place when you have no idea what lucene
subproject might be off use to you, or when you wouldlike to discuss
issues that span multiple subprojects)
-Hoss