Hi,
I'm having trouble getting PHP (Version 4.0.1pl2) to work with Java support. I have configured the PHP configuration '--with-java' etc, and added the appropriate lines to php.ini as instructed in the php-path/ext/java/README file:
========================================================================
=== JVM=Blackdown 1.2.2 RC4, OS=Redhat Linux 6.1 ===
build instructions:
./configure --with-java
php.ini:
[java]
java.class.path=/home/rubys/php4/lib/php_java.jar
extension_dir=/home/rubys/php4/modules
extension=libphp_java.so
...(using my own system's paths, of course, which I have tested). I was able to rebuild and configure PHP without any errors, but when I try to do something like:
$foo = new java("objectname");
I get this frustrating error:
Fatal error: Unable to load Java Library /usr/local/jdk1.2.2/jre/lib/i386/libjava.so in
/filepath/test.php4 on line 8
The libjava.so file is definitely THERE, at the path listed in the error, and it is world-readable and executable.
So does anyone know why am I getting this error? Java is working fine from the command line.
Any ideas?
Thanks,
Luke