#18600 [Opn]: Unable to create Java Virtual Machine

From: Date: Mon, 29 Jul 2002 13:10:57 +0000
Subject: #18600 [Opn]: Unable to create Java Virtual Machine
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15487@lists.php.net to get a copy of this message
 ID:               18600
 User updated by:  nalves@equifax.com.br
 Reported By:      nalves@equifax.com.br
 Status:           Open
 Bug Type:         Java related
 Operating System: Windows 2000
 PHP Version:      4.2.2
 New Comment:

False alarm! I just got 'Unable to create Java Virtual Machine'
executing the first example that is in the docs... 
afterwards I got periods of errors and periods of success!

Definitively there's something wrong. Ideas?


Previous Comments:
------------------------------------------------------------------------

[2002-07-29 09:00:12] nalves@equifax.com.br

With jdk1.1.8 I got even worse errors. Fisrt, I couldn't find jvm.dll
in the installation directory. I read somewhere that instead I should
use javai.dll, but using this dll I only got error 500.

Back to j2sdk1.4.0_01, I tried to change my configuration. I set
java.library.path to C:\PHP\extensions (before it was unset), and now I
have the following java section in php.ini:

[Java]
java.class.path = c:\PHP\extensions\php_java.jar
java.home = "C:\j2sdk1.4.0_01\jre\bin"
java.library = "C:\j2sdk1.4.0_01\jre\bin\server\jvm.dll"
java.library.path = "C:\PHP\extensions"

Now I have been able to keep the F5 key pressed and no errors showed
up. Also, it seemed to work, because it's been running here for about
30 minutes (I only have one page that uses java that I reload from time
to time) with no errors. 

I wouldn't say that it works perfectly now, but it seems better that
before. I'll try to make some other tests and see what happens, and
then I'll report here my results.

------------------------------------------------------------------------

[2002-07-27 02:08:47] rverlander@php.net

Try using JDK 1.1.8

------------------------------------------------------------------------

[2002-07-26 13:06:49] nalves@equifax.com.br

As I couldn´t get a definitive answer for this, I´m posting a new bug.

I can´t make the Java extension work. It runs fine for some time, but
after some time I just get the message "Unable to Create Java Virtual
Machine". If I make a lot of connections (just pressing the F5 key) I
can reproduce the error. After this error, I might be succesful in
another execution, but not always.

I´m using Java 1.4.0_01.
My php.ini is configured like this:
java.class.path = c:\PHP\extensions\php_java.jar
java.home = "C:\j2sdk1.4.0_01"
java.library = "C:\j2sdk1.4.0_01\jre\bin\server\jvm.dll"

Even setting java.home to C:\j2sdk1.4.0_01\bin would not work. I even
tried PHP 4.1.2 + jdk1.2.2, but it reported the same behavior.

Any help would be appreciated.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=18600&edit=1



Thread (60 messages)

« previous php.bugs (#15487) next »