php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5992 Unable to connect to java
Submitted: 2000-08-06 15:19 UTC Modified: 2000-12-30 11:51 UTC
From: rolf dot tollerud at telia dot com Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 4.0.1pl2 OS: Win 2000 Server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rolf dot tollerud at telia dot com
New email:
PHP Version: OS:

 

 [2000-08-06 15:19 UTC] rolf dot tollerud at telia dot com
I have problems getting php4's JDK1.2.2 support to run.

jdk1.2.2 is installed in E:\jdk1.2.2, the 1.2.2 JRE in 
E:\Program Files\JavaSoft\JRE
JAVA_HOME is set to E:\jdk1.2.2
CLASSPATH is set to: F:\Microsoft install\Xalan\xalan-j_1_1\xalan_1_1\php_java.jar

php_java.dll is in: D:\PHPext\php_java.dll

winnt\php.ini contains the following entries: 
extension_dir = D:\PHPext
[java] 
java.class.path=F:\Microsoft install\Xalan\xalan-j_1_1\xalan_1_1\php_java.jar
extension=php_java.dll 

When I try to launch the jver.php example.I get an error message "failed to load jvm.dll in line 4" 
I added to PATH: E:\Program Files\JavaSoft\JRE\1.2\bin\classic (where jvm.dll resides)
 
After I get a new error: Fatal error: Unable to create Java Virtual Machine in D:\phptest\jver.php on line 4

I can see on the mailing list that 2 other persons have the same problem.
I never compiled but run the binaries. All other things, including connecting to MySQL and MSSQL works perfectly and very fast!

Rolf Tollerud



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-13 20:48 UTC] rubys@php.net
You may also need E:\Program Files\JavaSoft\JRE\1.2\bin in your classpath.
 [2000-11-27 05:39 UTC] sniper@php.net
Is this problem still valid?


--Jani
 [2000-12-30 11:51 UTC] sniper@php.net
No feedback, considered fixed.

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 16:01:33 2025 UTC