ID: 14908 Comment by: patelbhupi 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:
hello, i need to know how to configure php with java, Thanks in advance Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2002-02-26 13:24:37] thiller at sandvine dot com I am really looking for a fix to this problem. Just playing with INI file settings doesn't seem to cut it. I have noticed that if you set KEEPALIVE to off in Apache you can only access Java once (otherwise as long as you refreshed the page every few seconds it would keep working). I think this problem has something to do with what happens when the module is unloaded. It might be ending up in an unusable but loaded state which prevents it from being loaded again. It is obvious it is web server independant. ------------------------------------------------------------------------ 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