Hi!, I have installed the 1.7.2 version of xampp for windows. Everything is working fine. Nevertheless, I need to add a java support in php.
I added the following lines in php.ini file
[Java]
java.home = C:\Archivos de programa\Java\jdk1.6.0_16\bin
java.library = C:\Archivos de programa\Java\j2re1.4.2_03\bin\client\jvm.dll
java.library.path = C:\Archivos de programa\Java\j2re1.4.2_03\lib
but its not working as it should because in the phpinfo() I dont get the java info and if a I run a php web page I get the following error: Fatal error: Class 'Java' not found in C:\xampp\htdocs\PhpTest3\index.php on line 10
To use java class in the php, I'm using the follogin code:
<?php
$system = new Java("java.lang.System");
echo "<P>Java version = " . $system->getProperty("java.version") . "<br>";
echo "Java vendor = " . $system->getProperty("java.vendor") . "</p>";
?>
Could someone help me to add the java support? Thanks in advance.