lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Rowe <sar...@gmail.com>
Subject Re: Lucene config issue cannot run demo
Date Fri, 10 Nov 2017 22:41:36 GMT
Hi Mike,

Just above the line you give, there is a discussion of “setting up your Java CLASSPATH”
- you need to do this first.

Assuming you’re on Windows (because your email includes “Sent from Mail for Windows 10”),
you’ll need to do something like the following before invoking the java command you ran
(caveat: untested):

prompt> set CLASSPATH="core\lucene-core-7.1.0.jar;queryparser\lucene-queryparser-7.1.0.jar;analysis\common\lucene-analyzers-common-7.1.0.jar;demo\lucene-demo-7.1.0.jar”

--
Steve
www.lucidworks.com

> On Nov 10, 2017, at 5:26 PM, Mike Lynott <mklnttid@gmail.com> wrote:
> 
> The Lucene demo calls for file that’s not provided.
> 
> On this page:
> http://lucene.apache.org/core/7_1_0/demo/overview-summary.html#overview_description
> 
> we are told to run this command:
> 
> 
> java org.apache.lucene.demo.IndexFiles -docs {path-to-lucene}
> 
> Error message received:
> 
> Error: Could not find or load main class org.apache.lucene.demo.IndexFiles
> 
> Suggestions?
> 
> Mike Lynott
> Sent from Mail for Windows 10
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message