try using php java bridge
http://php-java-bridge.sourceforge.net/
Its a way for using java objects directly in php.
2008/3/25 Mathieu Lecarme <[EMAIL PROTECTED]>:
> milu07 a écrit :
>
> Hello,
> >
> > My machine is Ubuntu 7.10. I am working with Apache Lucene. I have done
> > with
> > indexer an
milu07 a écrit :
Hello,
My machine is Ubuntu 7.10. I am working with Apache Lucene. I have done with
indexer and tried with command line Searcher (the default command line
included in Lucene package: http://lucene.apache.org/java/2_3_1/demo2.html).
When I use this at command line:
java Searcher
Op Saturday 22 March 2008 00:32:32 schreef Paul Elschot:
> Milu,
>
> This is a PHP problem, not a Lucene one, so you might get better
> response at a PHP mailing list.
>
> The easy way around your problem is probably by invoking a shell
> script from php that exports the class path as you indicated
Milu,
This is a PHP problem, not a Lucene one, so you might get better
response at a PHP mailing list.
The easy way around your problem is probably by invoking a shell
script from php that exports the class path as you indicated,
so that java can see the correct classes.
Having said that, you'll
error message when I try: exec("java Searcher -query
algorithm 2>&1 ", $arr, $retVal);
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/lucene/analysis/Analyzer
Could you please help?
Thank you,
--
View this message in context:
http://www.nabble.