hi,

chk out the following in ur PHP.INI file... the php_java.dll file shud be
enabled and also chk out the config under the java tab... hv pasted below
the config that works for me.....

gud luck,
sands

extension=php_java.dll

[Java]
;java.class.path = .\php_java.jar
;java.home = c:\jdk
;java.library = c:\jdk\jre\bin\hotspot\jvm.dll
;java.library.path = .\


;extension=php_java.dll
java.library.path="C:\apache\php\extensions;"
java.class.path="C:\apache\php\extensions\php_java.jar;C:\jdk1.3.1_01\weblog
ic\weblogic.jar;C:\JBuilder6\ProfileStateless\classes;"
java.home = "C:\jdk1.3.1_01\bin"
java.library = C:\jdk1.3.1_01\jre\bin\server\jvm.dll







-----Original Message-----
From: Opere, James [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ]
Sent: quinta-feira, 2 de Maio de 2002 6:22
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP and Java


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/ <http://www.php.net/> )
To unsubscribe, visit: http://www.php.net/unsub.php
<http://www.php.net/unsub.php> 


Reply via email to