Hi Gasi,

Please see page xxxii in LIA, section Author Online, and use that for
LIA questions, so we don't bother others with LIA-specific stuff.

However, your problem doesn't have to do so much with LIA, either. 
It's a basic Java question, and it looks like the part that you have
been misunderstanding is about what CLASSPATH is or how it is used.

When you run "java -classpath lucene-1.4.3.jar
lia.analysis.AnalyzerDemo", you are not compiling anything, you are
trying to run AnalyzerDemo class, in the lia.analysis java package.

Also, thar particular command assumes that file lucene-1.4.3.jar is in
your current directory, and based on your error, it looks like that's
not the case.

Here are some links that may be worth checking out:
  http://www.google.com/search?q=java%20classpath%20tutorial

Otis


--- Gasi <[EMAIL PROTECTED]> wrote:

> Hallo,
> 
> 
> IBecause of less or better say no experience in Ant I try to run some
> demo applications out of the LuceneInAction Examples folder. For
> example I wanted to test AnalyzerDemo.java. I set the -classpath
> c:/LuceneInAction/lia/analysis because there is AnalyzerDemo.java on
> my system. I tried to compile it with :
>  java -classpath lucene-1.4.3.jar lia.analysis.AnalyzerDemo but it
> failed. The error is NoClassDefError.
> Has somebody a hint why it fails
> 
> 
> Thanks in advance
> 
> 
> 
> Greetings
> 
> 
> 
> Gaston


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to