Page 1 of 1

PHP-Java Integration

Posted: Sat May 06, 2006 8:41 pm
by joan_ayala
I am using PHP 5.1.2 with Windows, and i think Java it is already integrated
in it with no need of installing any extension, is that true ? or should i
modify php.ini ? if so, how ?

The problem is when the following line from a PHP file is executed:

$system = new Java('java.lang.System');

then next error is displayed:

Fatal error: Class 'Java' not found in C:\wamp\www\trec\java.php on line 3

hope you can help me. thanks

Posted: Sat May 06, 2006 9:44 pm
by feyd
Java is not integrated into PHP in the Windows build by default. It is a PECL extension. You will need to install the JDK as well.