You have to also pass the classpath to java runtime, not only to javac.

If you get this problem within Eclipse, have you tried to cleanup the
project, maybe not all files are compiled?

Are you also compiling Lucene from source? If yes, make sure that all Lucene
classes are compiled (see cleanup above, uncheck any options to compile only
used classes). Lucene uses reflection to load some additional classes not
referenced in the .java files directly (dynamic loading), so missing ones
would not be seen by javac? Also it may be the case that inside Eclipse you
are using the veeeeery old Eclipse-shipped lucene-core.jar that interferes
with your program.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de


> -----Original Message-----
> From: Alex vB [mailto:m...@avomberg.de]
> Sent: Tuesday, January 25, 2011 5:41 PM
> To: java-user@lucene.apache.org
> Subject: Re: Could not find implementing class
> 
> 
> Hello Alexander,
> 
> isn't it enough to add the classpath through -cp? If I don't use -cp I
can't
> compile my project. I thought after compiling without errors all sources
are
> correctly added. In Eclipse I added Lucene sources the same  way(which
> works) and I also tried using the jar file. Therefore I seem to find all
classes
> but I don't get a clue with the error message. This error message is
thrown by
> the Lucene class DefaultAttributeFactory in
> org.apache.lucene.util.AttributeSource. I work under Ubuntu and configured
> java with
> 
> - sudo update-alternatives --config java
> - sudo update-java-alternatives -java-6-sun
> 
> Greetings
> Alex
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Could-
> not-find-implementing-class-tp2330598p2331617.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org



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

Reply via email to