Anon
12-27-2000, 02:41 PM
Hiya.
I need help getting ext/java to work in PHP on Linux. I'm using the blackdown java port, the JDK I downloaded was 1.3FCS. I have it installed in /usr/local/java (that's a symlink to its actual location). I compiled PHP like so:
./configure --with-mysql=/usr --with-java --with-apxs=/usr/local/apache/bin/apxs
after setting JAVA_HOME to /usr/local/java and putting JAVA_HOME/bin in my PATH. PHP compiled successfully and I ran make install w/o problems. The relevant lines in my php.ini (located in /usr/local/lib) are:
[Java]
java.class.path=/usr/local/java/php_java.jar
extension_dir=/usr/local/lib
extension=libphp_java.so
I've been perusing the various online resources & archives of lists and I've tried a lot of other config lines, but I've dropped back to what it says in the README.
php_java.jar IS located in /usr/local/java
I copied libphp_java.so from my modules directory to /usr/local/lib.
I think that's it on the config. The message I get is quite simply that php can't instantiate "java". The same message many others appear to get :).
Hope I can get some help on this!
Regards,
Brice Ruth
I need help getting ext/java to work in PHP on Linux. I'm using the blackdown java port, the JDK I downloaded was 1.3FCS. I have it installed in /usr/local/java (that's a symlink to its actual location). I compiled PHP like so:
./configure --with-mysql=/usr --with-java --with-apxs=/usr/local/apache/bin/apxs
after setting JAVA_HOME to /usr/local/java and putting JAVA_HOME/bin in my PATH. PHP compiled successfully and I ran make install w/o problems. The relevant lines in my php.ini (located in /usr/local/lib) are:
[Java]
java.class.path=/usr/local/java/php_java.jar
extension_dir=/usr/local/lib
extension=libphp_java.so
I've been perusing the various online resources & archives of lists and I've tried a lot of other config lines, but I've dropped back to what it says in the README.
php_java.jar IS located in /usr/local/java
I copied libphp_java.so from my modules directory to /usr/local/lib.
I think that's it on the config. The message I get is quite simply that php can't instantiate "java". The same message many others appear to get :).
Hope I can get some help on this!
Regards,
Brice Ruth