PHP-Java Integration

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
joan_ayala
Forum Newbie
Posts: 1
Joined: Sat May 06, 2006 8:37 pm

PHP-Java Integration

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply