Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 35633 invoked from network); 13 Feb 2009 00:37:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2009 00:37:45 -0000 Received: (qmail 93266 invoked by uid 500); 13 Feb 2009 00:37:44 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 93229 invoked by uid 500); 13 Feb 2009 00:37:44 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 93218 invoked by uid 99); 13 Feb 2009 00:37:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 16:37:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2009 00:37:35 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id 300F371C481; Thu, 12 Feb 2009 16:37:13 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 2C46E71C45A for ; Thu, 12 Feb 2009 16:37:13 -0800 (PST) Date: Thu, 12 Feb 2009 16:37:13 -0800 (PST) From: Chris Hostetter To: general@lucene.apache.org Subject: Re: error with checkout the Basic Demo of Lucene In-Reply-To: <21978543.post@talk.nabble.com> Message-ID: References: <21968770.post@talk.nabble.com> <98931A9C-0C66-4AC2-99F1-D95B14DEA786@apache.org> <21978543.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : 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