Date: 12/19/00
- Next message: Jani Taskinen: "Re: [PHP-DEV] PHP 4.0 Bug #8027 Updated: diskfreespace always return 0 in FreeBSD"
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #7087 Updated: error opening libclntsh.so.8.0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>>
To: php-general <email protected>
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 <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jani Taskinen: "Re: [PHP-DEV] PHP 4.0 Bug #8027 Updated: diskfreespace always return 0 in FreeBSD"
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #7087 Updated: error opening libclntsh.so.8.0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

