I've managed to compile, install, and run the CGI version of PHP4.0.4PL1 with Java (Blackdown) support without any problems. However, the APXS version has me stumped.
Compilation and installation went fine. I even removed the /usr/local/lib dir between the CGI and APXS installs (and verified the correct version of libphp_java.so).
When I try accessing a php page with a Java call, I get the following error:
Unable to locate CreateJavaVM function in ...
Following is the latest rendition of my php.ini file (though lots of other combinations were also attempted):
[Java]
extension_dir=/usr/local/lib
extension=libphp_java.so
java.class.path=/usr/local/lib/php_java.jar
java.library.path=/usr/local/lib:/usr/local/java/jdk1.2.2/jre/lib/i386:/usr/local/java/jdk1.2.2/lib/i386/classic:/usr/local/java/jdk1.2.2/jre/lib/i386/native_threads
java.library = libphp_java.so
I copied /usr/local/lib/extension/*/libphp_java.so to /usr/local/lib/ for easier management.
If I don't include java.library.path and java.library I'll get the following error:
Unable to load Java Library /usr/local/java/jdk1.2.2/jre/lib/i386/libjava.so, error: libhpi.so
Thx in advance for any help!