|
From: <php...@li...> - 2007-03-19 03:17:28
|
I can't find a readme that mentions anything about this. My
configuration is as follows:
W2k
Php v5.16 or Php v5.21 ( can use either )
PHPEdit v4.6.3 in debug/server mode
JRE 1.5.10
Using the following I have successfully? performed the bridge
In a DOS box I run:
java -jar JavaBridge.jar SERVLET_LOCAL:9676
In my php.ini I have no java extension or module information
My Test.php is thus: (I tried using new Java(...) with no difference in
results)
<?php
require_once("http://localhost:9676/JavaBridge/java/Java.inc");
$system = new JavaClass('java.lang.System');
$jversion = $system->getProperty('java.version');
// echo 'Java version=' . $jversion . '<br/>';
echo 'Java version=';
echo $jversion;
echo '<br/>';
?>
Result is:
******************************
Java version=[o(String):"1.5.0_10"]
******************************
If I uncomment the line below assignment of $jversion result is:
******************************
Java version=Object id #19
Java version=[o(String):"1.5.0_10"]
******************************
This can't be right!!!
Thanks,
Jose
|