ID: 14908 Comment by: chandini882000 at yahoo dot com Reported By: fusion at factmusic dot com Status: No Feedback Bug Type: Java related Operating System: W2K PHP Version: 4.1.1 New Comment:
Even i am facing the same problem.I am trying to call java from php.For this i am using PECL extension..and i also downloaded php java bridge.But the following test code: $system = new Java('java.lang.System'); // demonstrate property access echo "Java version=" . $system->getProperty('java.version') . "<br/>"; When i execute this i got the following error: "Fatal error: java() [<a href='function.java'>function.java</a>]: Unable to create Java Virtual Machine" In php.ini i added the following thing: [java] java.home="F:\Program Files\Java\jdk1.6.0_03" java.class.path="C:\xampp\php\ext\JavaBridge.jar" java.library.path="C:\wamp\php\ext" java.library="F:\Program Files\Java\jdk1.6.0_03\jre\bin\server\jvm.dll" Then my system started give an error that "Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience."..And can anyone help me out to solve this problem? Chandini Previous Comments: ------------------------------------------------------------------------ [2007-08-15 13:55:59] patelbhupi at yahoo dot com hello, i need to know how to configure php with java, Thanks in advance ------------------------------------------------------------------------ [2002-03-26 11:31:22] ben at gostrategic dot com I am receiving the following error using Win2k / Apache1.3.22 / PHP4.1.2 / JDK1.2.2 -- Unable to initalize Java Virtual Machine -- immediately after loading a script that uses Java. I can remedy the problem by restarting Apache, which is obviously not feasible. ------------------------------------------------------------------------ [2002-03-25 01:00:50] fusion at factmusic dot com No, I have never been able to get this to work. Maybe someone else can? ------------------------------------------------------------------------ [2002-03-25 00:00:03] php-bugs at lists dot php dot net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-03-05 03:52:31] lilyprasad at hotmail dot com With reference to the Bug:14908 from [EMAIL PROTECTED] dated 7Jan, i would like to put following question as i am also facing the same problem: Were you able to solve your problem! We are also trying to install PHP4.1.1 with java spport having jdk version 1.2.2, linux 7.1, apache 1.3.19. I also get the same error while testing a test php4 file having : <?php $obj = new Java ("java.lang.system") ; ?> The error is Fatal error: Unable to create Java Virtual Machine in /var/www/html/test/test.php4. [Java] java.class.path = /var/www/php/php-4.1.1/ext/java/php_java.jar java.home = /var/www/php/php-4.1.1/ext/java/jdk1.2.2:/var/www/php/php-4.1.1/ext/ java/jdk1.2.2/bin:/var/www/php/php-4.1.1/ext/java/jdk1.2.2/jre/bin:/var/www/php/ php-4.1.1/ext/java/jdk1.2.2/jre/lib ;java.library.path = /var/www/php/php-4.1.1/ext/java/jdk1.2.2/jre/lib/i386 ;java.library = libjava.so java.library.path = /var/www/php/php-4.1.1/ext/java/jdk1.2.2/jre/lib/i386/classi c java.library = libjvm.so extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20010901 extension = libphp_java.so This is our present setting in the php.ini file. Kindly help us. With Regards, Lily ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/14908 -- Edit this bug report at http://bugs.php.net/?id=14908&edit=1