From:             [EMAIL PROTECTED]
Operating system: Win98
PHP version:      4.0.4pl1
PHP Bug Type:     Java related
Bug description:  scripts fail with error "Fatal error: Unable to create Java Virtual 

The following:

  $system = new Java("java.lang.System");
  print("Java version: " .  $system->getProperty("java.version") .  "<BR>\n");
  $formatter = new Java("java.text.SimpleDateFormat", "EEEE, MMMM dd, yyyy 'at' 
h:mm:ss a zzzz");
  print($formatter->format(new Java("java.util.Date")) . "<BR>\n");

produces the error "Unable to create Java Virtual Machine in xyz.php on line XX" under 
PHP 4.0.5RC1 as well as the latest 4.0.4 off the site.

my php.ini section is:

java.library.path = 
java.library = C:\Inetpub\jdk-1.3\jre\bin\classic\jvm.dll
java.class.path = "C:\Inetpub\php\extensions\php_java.jar"
java.home = 

Im using J2SDK 1.3

The script actually works the first few times (the ammount of times varies) but then 
continuously fails. I've seen numerous reports of people with the same problem on

Installing an another machine with the same config, reproduces the same error.

It also appears to be somewhat related to bug # 6617 
( and # 6925 (

Are there any plans to tackle these issues?


Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to