Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 45093 invoked from network); 27 Dec 2005 18:27:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Dec 2005 18:27:08 -0000 Received: (qmail 25630 invoked by uid 500); 27 Dec 2005 18:27:02 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 25612 invoked by uid 500); 27 Dec 2005 18:27:02 -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 25601 invoked by uid 99); 27 Dec 2005 18:27:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 10:27:02 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 10:27:01 -0800 Received: by ehatchersolutions.com (Postfix, from userid 504) id 2E69913E201A; Tue, 27 Dec 2005 13:26:40 -0500 (EST) Received: from [172.16.1.101] (va-71-48-129-167.dhcp.sprint-hsd.net [71.48.129.167]) by ehatchersolutions.com (Postfix) with ESMTP id 2AFD213E2005 for ; Tue, 27 Dec 2005 13:26:33 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <1e2216160512270725y1fa9b7e4h@mail.gmail.com> References: <1e2216160512261531o583f88cel@mail.gmail.com> <1e2216160512270725y1fa9b7e4h@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <71FF53BB-3147-4955-963D-5EC78DD2A5ED@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Problem Getting Started... Date: Tue, 27 Dec 2005 13:26:30 -0500 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.746.2) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Are you running the Sun JVM? Or some other JVM? Erik On Dec 27, 2005, at 10:25 AM, Federico Carbonetti wrote: > hello erik and hello everybody! > > 2005/12/27, Erik Hatcher : >> >> On Dec 26, 2005, at 6:31 PM, Federico Carbonetti wrote: >>> I'm new in the ML and in the Lucene world in general... :) >> >> ML? >> > > Mailing List! ehehe! :) > > this morning i changed some settings for the PATH variabile, but I'm > still experiencing the same trouble. I tried to extract lucene > following the hints given in the appendix of "lucene in action" (I've > that book) but without success... I downloaded lucene-1.4-final.zip, > extracted to C:\lucene-1.4-final\ and updated the classpath of > windows. Somebody told me to set the JVM classpath by typing: > > java -cp lucene-1.4-final.jar; -jar lucene-demos-1.4-final.jar > > but I got the following message: > Failed to load Main-Class manifest attribute from lucene-demos-1.4- > final.jar > > While when i Try to set the classpath as suggested in the appendix > (java -cp lucene-1.4-final.jar; lucene-demos-1.4-final.jar) i got the > "usual" Exception in thread "main"... > > Does anybody know the solution to my problem please? :) > > Thanks again! Bye > >> >> Federico, >> >> I'm pasting below the relevant piece of the "Installing Lucene" >> appendix, I hope this helps. At first glance, the environment and >> steps you described seemed fine, so I'm not sure what is awry. >> >> I hope the info below helps: >> >> Running the command-line demo >> The command-line Lucene demo consists of two command-line >> programs: one >> that indexes a directory tree of files and another that provides a >> simple search >> interface. To run this demo, set your current working directory to >> the directory >> where the binary distribution was expanded. Next, run the IndexFiles >> program >> like this: >> >> java -cp lucene-1.4.2.jar;lucene-demos-1.4.2.jar >> org.apache.lucene.demo.IndexFiles docs >> . >> . >> . >> adding docs/queryparsersyntax.html >> adding docs/resources.html >> adding docs/systemproperties.html >> adding docs/whoweare.html >> 9454 total milliseconds >> >> This command indexes the entire docs directory tree (339 files in our >> case) into >> an index stored in the index subdirectory of the location where you >> executed >> the command. >> >> NOTE Literally every file in the docs directory tree is indexed, >> including .gif >> and .jpg files. None of the files are parsed; instead, each file is >> indexed >> by streaming its bytes into StandardAnalyzer. >> >> To search the index just created, execute SearchFiles in this manner: >> >> java -cp lucene-1.4.2.jar;lucene-demos-1.4.2.jar >> org.apache.lucene.demo.SearchFiles >> >> Query: IndexSearcher AND QueryParser >> Searching for: +indexsearcher +queryparser >> 10 total matching documents >> 0. docs/api/index-all.html >> 1. docs/api/allclasses-frame.html >> 2. docs/api/allclasses-noframe.html >> 3. docs/api/org/apache/lucene/search/class-use/Query.html >> 4. docs/api/overview-summary.html >> 5. docs/api/overview-tree.html >> 6. docs/demo2.html >> 7. docs/demo4.html >> 8. docs/api/org/apache/lucene/search/package-summary.html >> 9. docs/api/org/apache/lucene/search/package-tree.html >> >> SearchFiles prompts interactively with Query:. QueryParser is used >> with Standard- >> Analyzer to create a Query. A maximum of 10 hits are shown at a time; >> if there are >> more, you can page through them. Press Ctrl-C to exit the program. >> >> Erik >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org