ID:               14908
 Comment by:       asifimam at hotmail 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:

I am facing the same problem. Although it wortks fine on Windows, but
it fails on linux. 
It fails only when it is being called through apache (web browser).
Else using php executable it passes. 
It fails on CreateJVM call.


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

[2008-07-23 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, 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".

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

[2008-07-15 12:02:39] [email protected]

If you use the PECL extension, report the bug there.

Please note that php 4.x will not get any non critical fix (security)
until its very last release. Which PHP version do you use?

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

[2008-07-15 11:59:46] chandini882000 at yahoo dot com

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

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

[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.

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

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

Reply via email to