Java and PHP

From: Date: Thu, 01 Aug 2002 12:16:43 +0000
Subject: Java and PHP
Groups: php.windows 
Request: Send a blank email to php-windows+get-15057@lists.php.net to get a copy of this message
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

« previous php.windows (#15057) next »