[pylucene-dev] classpath problem when compiling the trunk

Andi Vajda vajda at osafoundation.org
Sun Sep 23 15:54:10 PDT 2007


On Sun, 23 Sep 2007, Felix Schwarz wrote:

> after my success on CentOS 5, I tried to build PyLucene on Fedora 7.
> Unfortunately, this does not work:
> ...
> cd lucene-java-2.2.0-549438/build/contrib/snowball/classes/java; \
>        find . -name '*.class' -print | \
>        sed -e 's|^\./||' -e 's|/|.|g' -e 's|\.class$||' | \
>        xargs -n 1 /usr/bin/gcjh -d . --classpath=.
> Exception in thread "main" java.io.IOException: can't find class file 
> org/apache/lucene/analysis/Analyzer.class in

I don't have this problem. Maybe there's something different in your 
environment or gcj/gcjh version ?
Instead of using classpath=. in the gcjh invocation,
try using -classpath=.:$(PYLUCENE_CP), maybe that'll solve the problem ?

I just built from scratch with gcj 4.0.2 on Intel Mac OS X without any changes 
or problems.

Andi..



More information about the pylucene-dev mailing list