|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-07 08:23 UTC] fusion at factmusic dot com
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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 18:00:01 2025 UTC |
With reference to the Bug:14908 from fusion@factmusic.com 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, LilyEven 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