Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 64884 invoked from network); 18 Feb 2007 19:54:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2007 19:54:06 -0000 Received: (qmail 50770 invoked by uid 500); 18 Feb 2007 19:54:08 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 50743 invoked by uid 500); 18 Feb 2007 19:54:08 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 50732 invoked by uid 99); 18 Feb 2007 19:54:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Feb 2007 11:54:08 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of erickerickson@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Feb 2007 11:53:57 -0800 Received: by nf-out-0910.google.com with SMTP id i2so1987759nfe for ; Sun, 18 Feb 2007 11:53:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=I0yWvxyaFgVYQFn2q6R/xM7A2ACE64JhaJmH0g1SBL2QdpkbuXAZRwjv0hL2kZoDSec+dWt795qYTkGk89PtDQ0GxzMDvoE9iFAzA2uD4/pa4+opAzWscT+VqJ2BYhOzrBOpxdSOKp/9io15RsPGsODQDFninfjr7imbAxBhNN0= Received: by 10.82.167.5 with SMTP id p5mr9189595bue.1171828415983; Sun, 18 Feb 2007 11:53:35 -0800 (PST) Received: by 10.82.162.20 with HTTP; Sun, 18 Feb 2007 11:53:35 -0800 (PST) Message-ID: <359a92830702181153m370dae63haeb1c451f056e1c6@mail.gmail.com> Date: Sun, 18 Feb 2007 14:53:35 -0500 From: "Erick Erickson" To: java-user@lucene.apache.org Subject: Re: the never ending class path problem In-Reply-To: <45D88EAA.9060000@optonline.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28485_19776995.1171828415956" References: <45D88EAA.9060000@optonline.net> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_28485_19776995.1171828415956 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline So, which class wasn't found? Indexfiles? And should that be IndexFiles? But check again that the path to the jars is exactly correct. I can't tell you how many times I've made a typo in something like that...... Often I resort to making a command file, and cut-n-paste from Windows Explorer address bar just to be sure, then cut-n-pasting things into an editor to force myself to do a character-by-character comparison..... One final note, it's useful to cut-n-paste the errors, since if you re-type things, you can, say, capitalize incorrectly and not get much useful back...... Erick On 2/18/07, Beth Friedmann wrote: > > I am hoping someone can tell me what I am doing wrong. I downloaded the > demo for lucene, 2.1.0. I have put the core and demos jars in my class > path and have confirmed they exist with a set command. > > My directory structure is: > > c:\documents and users\owner\workspace\lucene > demo\src\demo\org\apache\lucene\demo > > The java files including IndexFiles and IndexHTML reside there. > > I am a windows user and clearly a very very new newbie, so help is > appreciated. > > I choose start, run, cmd. > When I set the class path I typed: > > set classpath=c:\documents and users\owner\workspace\lucene > demo\lucene-core-2.1.0.jar;c:\documents and users\owner\workspace\lucene > demo\lucene-demos-2.1.0.jar > > This is as I said above what returns when I type set. > > Then I type: java org.apache.lucene.demo.Indexfiles docs > > get a no classdef Found > > I also tried java org.apache.lucene.demo.IndexHTML -create --index > {index-dir} .. > > Suggestions are welcome. Please make sure to include what directory I > should be in when I type the commands > > > Thank you, > Beth Friedmann > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_28485_19776995.1171828415956--