I have downloaded JDK1.1.8 and installed on a windows platform.The problem
is that when i copy a script, paste and try to run as a .php which has some
java in it, i get an error i.e
Fatal error: Cannot instantiate non-existent class: java in
c:\phpdev\www\phpjava.php on line 5
The script is as below:
<?php
// Create an instance of the System object
// using PHP's Java class
$system = new Java("java.lang.System");
// Get the Java version
$version = $system->getProperty("java.version");
// Write it to the screen
echo("Java Version: $version");
?>
Can anybody help me out there how i should do my configuration so that this
can run? I tried making changes in php.ini but i still get the same error.Do
i need to install anothere java? If not, how then should i go about it?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php