|
From: <php...@li...> - 2006-07-13 18:58:24
|
I have a PHP file that includes the following code:
<?php
java_require("commons-beanutils.jar;commons-beanutils-bean-collections.jar
;commons-beanutils-core.jar;commons-logging-1.1.jar;commons-digester-1.7.jar;commons-b
eanutils.jar;source.jar;demo.jar");
$path = new Java("java.lang.String", "/home/wendy/lucene-2.0.0
/src/demo/index");
$Searcher = new Java("org.apache.lucene.search.IndexSearcher ", $path);
?>
I get the following error about missing java.security.Security.
Fatal error: Uncaught [o(Exception):"java.lang.Exception: CreateInstance
failed: new org.apache.lucene.search.IndexSearcher ((String)o(String)).
Cause: java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: java.security.Security. -- Unable to call
constructor because it or one of its parameters refer to the mentioned
external class which is not available in the current "java_require()" path.
Please check the path and the SEL and File permissions and remember that all
interconnected classes must be loaded with a single java_require() call,
i.e. use java_require("foo.jar;bar.jar") instead of java_require("foo.jar");
java_require("bar.jar"). Please check the Java Bridge log file for
details."] thrown in /home/wendy/public_html/test3.php on line 6
I am running on a FC5 machine, SEL disabled, 64-bit, using Java sockets and
a standalone app. Is this problem occurring because my default java install
has a 32-bit installation, and the bridge is requiring a 64-bit
installation? If so, do I need to upgrade my version of java to the 64-bit
installation somehow?
(Ref: We had previously discussed my errors in a message entitled:
"Installing on Fedora Core 5")
Thanks very much.
--
Wendy
|