lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: error with checkout the Basic Demo of Lucene
Date Fri, 13 Feb 2009 00:37:13 GMT


: 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...

chrish@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...

chrish@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-user@lucene mailing list ... there 
are going to be a lot more people subscribed there that can help you.  
(general@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


Mime
View raw message