ID:               14908
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Java related
 Operating System: W2K
 PHP Version:      4.1.1
 New Comment:

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


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

[2002-02-26 13:24:37] [EMAIL PROTECTED]

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.

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

[2002-02-24 06:19:15] [EMAIL PROTECTED]

Please test with  PHP 4.1.1+JDK 1.2 and report the result back 
Please do not forget  updating PHP version. Thanks.

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

[2002-01-07 08:23:11] [EMAIL PROTECTED]

This has been mentioned many times before, but I'd like to keep the
issue fresh.  I have tried everything I can think of but still
eventually end up with the infamous "Unable to create Java Virtual
Machine" after a successful run of a few minutes.  It seems that if I
keep clicking it will keep running, but if I let it idle for a while
then I get the lovely notification.

This is using the pre-compiled .ZIP file (manual installation) with
Apache 1.3.22.  I doubt this makes a difference as I have seen this
issue coming up on Linux as well as Win2K IIS systems.  I've also
observed Win98 people expressing the same behavior.

I would LOVE to use this Java bridge feature - please tell me if and
how it can be done - my partner is suggesting we move away from PHP -
give me some fuel to stop that from happening!!

Malachi

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


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

Reply via email to