|
From: <php...@li...> - 2007-11-08 14:09:19
|
Hi Jost,
Thank you for your explanation. I double checked that i use the right
library jar file, i load it with
$aJarFiles[] = _JAVA_PATH.'lucene'._DIR_SEP.'lucene-core-2.2.0.jar';
$aJarFiles[] =
_JAVA_PATH.'lucene'._DIR_SEP.'contrib'._DIR_SEP.'highlighter'._DIR_SEP.'
lucene-highlighter-2.2.0.jar';
$aJarFiles[] =
_JAVA_PATH.'lucene'._DIR_SEP.'contrib'._DIR_SEP.'spellchecker'._DIR_SEP.'
lucene-spellchecker-2.2.0.jar';
$aJarFiles[] =
_JAVA_PATH.'lucene'._DIR_SEP.'contrib'._DIR_SEP.'similarity'._DIR_SEP.'
lucene-similarity-2.2.0.jar';
$aJarFiles[] =
_JAVA_PATH.'lucene'._DIR_SEP.'contrib'._DIR_SEP.'analyzers'._DIR_SEP.'
lucene-analyzers-2.2.0.jar';
java_require(implode(";",$aJarFiles));
Which give me no errors so the files will be included like they should. Even
unpacked the jar, read through the compile .java file to find the method en
it is there but it isn't listed on the java_inspect function. How would that
be possible? The documentation says it is a public method.
Greets,
Gilbert
On Nov 8, 2007 2:03 PM, <php...@li...> wrote:
> Hi,
>
> > indexwriter with a document. Everything works untill it reaches the
> update
> > document. it gives me :
> >
> > Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed:
> > [[o:IndexWriter]]->updateDocument([o:Term], [o:Document]). Cause:
> > java.lang.NoSuchMethodException: updateDocument([o:Term], [o:Document]).
> > Candidates: []
>
> You can use
>
> echo java_inspect ($indexWriter);
>
> to see the list of public methods exported by your version of the index
> writer.
>
>
> > It says NoSuchMethodException but i'm pretty sure it is there (checked
> the
> > src files).
>
> Source files are irrelevant. It depends on which version of the library.
>
> If you use the dynamic class loader, the loader automatically uses the
> latest version of your
> software (assuming that you name your java libraries appropriately, see
> the README for details).
>
>
>
> Regards,
> Jost Boekemeier
>
>
>
> Heute schon einen Blick in die Zukunft von E-Mails wagen?
> www.yahoo.de/mail
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|