RE: [PHP] PHP with Java

From: Date: Fri, 19 Oct 2001 02:03:34 +0000
Subject: RE: [PHP] PHP with Java
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71539@lists.php.net to get a copy of this message
Did you enable the java extension? In your php.ini file, you need to enable the extension, and then also enable/properly set all the stuff in the [Java] section. This will tell PHP where your JDK is, etc. -----Original Message----- From: Aku [mailto:hotma@doh-pbm.com] Sent: Thursday, October 18, 2001 6:15 PM To: php-general@lists.php.net Subject: [PHP] PHP with Java Hi, I learn PHP with Java and I try PHP script from help, like below; <? $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"; ?> error like; Fatal error: Unable to create Java Virtual Machine in c:\new\java\ex01.php on line 2 Thanks for help. Hotma MS hotma@doh-pbm.com (sorry about my english)

« previous php.general (#71539) next »