Strange Java Extension Problem (fwd)

From: Date: Wed, 20 Dec 2000 00:21:23 +0000
Subject: Strange Java Extension Problem (fwd)
Groups: php.dev 
Request: Send a blank email to php-dev+get-41879@lists.php.net to get a copy of this message
I think this is related to bug reported in #6990. (loading dynamic extensions in system config causes loss of ini settings) As it seems like the java extension is always compiled as dynamic extension..( why ?) --Jani ---------- Forwarded message ---------- Date: Tue, 19 Dec 2000 10:20:59 -0600 From: "McCandless, David W." <David.McCandless@viatel.com> To: php-general@lists.php.net Subject: [PHP] Strange Java Extension Problem 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#41879) next »