Strange Java Extension Problem

From: Date: Tue, 19 Dec 2000 16:20:59 +0000
Subject: Strange Java Extension Problem
Groups: php.general 
Request: Send a blank email to php-general+get-31041@lists.php.net to get a copy of this message
I am trying to use the Java extension and I am running across a strange error. I believe I have things mostly set up correctly because I can get the Java() function to work properly sometimes. However, most of the time I get the following error message: Fatal error: Unable to create Java Virtual Machine in /httpd/htdocs/javatest.php on line 40 I am fairly certain that the reason this happens is because the java.class.path is getting wiped out from what I have set it to in the ini file. I have also set java.home, java.library, and java.library.path in the ini file. When I look at phpinfo() sometimes all four will show up in the local value and java.library will show up as a master value too. Most of the time though, only java.library has a value (local and master) and the others show up as no value. Also, the value I set in the ini file for java.library is changed from libjvm.so to libjava.so. Is this suppose to happen? I was guessing as to what library I should use here, but the error I am getting indicates that it can't start the jvm, so this has me worried to. Which library is the correct one? Can anyone shed some light on this strange problem? Has anyone had similar problems with the Java extension? Here is my specific information: Apache 1.3.14 Apache JServ 1.2 PHP 4.03p1 Solaris 7 fully patched JSDK2.0 JAVA1.2 './configure' '--with-apxs=/usr/sbin/apxs' '--with-config-file-path=/etc/httpd' '--with-java' php.ini info: extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20000809 extension=libphp_java.so [Java] java.class.path = /usr/local/lib/php_java.jar:/httpd/servlets:/usr/java1.2/lib:/usr/local/JSDK 2.0/lib/jsdk.jar java.home = /usr/java1.2 java.library = /usr/java1.2/jre/lib/sparc/libjvm.so java.library.path = /usr/local/lib/php/extensions/no-debug-non-zts-20000809 Any help is greatly appreciated. Thanks in advance, David

« previous php.general (#31041) next »