I have installed Jdk 1.1.8, PHP version 4.2.2. I tried configuring Java to work with PHP but I still get an error below when trying to run a scrip.
Fatal error: Unable to create Java Virtual Machine in c:\phpdev\www\java.php on line 2
The script is a sample script to test if php is working on well with java.
Does anyone have any idea as to why I can't run the script below?
<?php $system = new java("java.lang.System"); print "Java version=".$system->getProperty("java.version")." <br>\n"; print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n"; print "OS=".$system->getProperty("os.name")." ". $system->getProperty("os.version")." on ". $system->getProperty("os.arch")." <br>\n";
$formatter = new Java("java.text.SimpleDateFormat","EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); print $formatter->format(new Java("java.util.Date"))."\n";
?>
I'm working on a windows XP.
J.Opere
|
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php