Hi all...
Anyone have any insight into the error:
Fatal error: java.lang.UnsatisfiedLinkError: no php_java in java.library.path in /net/users/art/dev_html/java_test.php
where java_test.php is:
<?
$system_inst = new Java('java.lang.System');
?>
The version of Java running is <?= $system_inst->getProperty("java.version") ?>.
Java is jdk1.3
PHP is 4.2.1
Linux 2.4.8
php.ini:
java.home = /usr/java/jdk1.3
java.class.path = /usr/local/lib/php/php_java.jar
java.library = /usr/java/jdk1.3/jre/lib/i386/classic/libjvm.so
java.library.path = /usr/local/lib/php/extensions/no-debug-non-zts-20020429
java.extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/java.so
Moving anything else around (i.e., changing the class.path or the library) causes me to get the expected "missing reflect.java" type errors or libjvm.so not found. My point being that PHP appears to see Java OK, but it doesn't find this native php_java method(?).
I noticed that reflect.properties in php_java.jar contains library=php_java when the actual library is just called java.so. Changing that didn't seem to do anything.
I'm pretty stumped. Any ideas?