PHP and Java

From: Date: Thu, 02 May 2002 05:22:21 +0000
Subject: PHP and Java
Groups: php.windows 
Request: Send a blank email to php-windows+get-13479@lists.php.net to get a copy of this message
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?

« previous php.windows (#13479) next »