Bug #11965 [Opn->Bgs]: can php5.2.3 support Java Integration?

From: Date: Mon, 03 Sep 2007 16:20:54 +0000
Subject: Bug #11965 [Opn->Bgs]: can php5.2.3 support Java Integration?
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-6024@lists.php.net to get a copy of this message
Edit report at http://pecl.php.net/bugs/bug.php?id=11965&edit=1 ID: 11965 Updated by: greg@chiaraquartet.net Reported By: yzb81 at 163 dot com -Status: Open +Status: Bogus Id: 11965 Type: Bug Package: Bug System Operating System: Windows XP SP2 PHP Version: 5.2.1 New Comment: this is not a bug, you need technical support. please email php-general@lists.php.net for support questions Previous Comments: ------------------------------------------------------------------------ [2007-09-03 03:54:25] yzb81 at 163 dot com Description: ------------ My php version is 5.2.3,apache version is 2.2.4,and my workstation is Windows XP SP2. Now I won't configure php to support Java Integration. My jdk version is jdk1.5.0. Reproduce code: --------------- My php.ini configuration for Java is: extension=php_java.dll [Java] java.class.path = "D:\php5\ext\php_java.jar; C:\Program Files\Java\jdk1.5.0\jre\lib;C:\Program Files\Java\jdk1.5.0;" Java.home = "C:\Program Files\Java\jdk1.5.0\bin" java.library = "C:\Program Files\Java\jdk1.5.0\jre\bin\server\jvm.dll" java.library.path = "D:\php5\ext" My test sample is : <? // get instance of Java class java.lang.System in PHP $system = new Java('java.lang.System'); // demonstrate property access echo 'Java version=' . $system->getProperty('java.version') . '<br />'; echo 'Java vendor=' . $system->getProperty('java.vendor') . '<br />'; echo 'OS=' . $system->getProperty('os.name') . ' ' . $system->getProperty('os.version') . ' on ' . $system->getProperty('os.arch') . ' <br />'; // java.util.Date example $formatter = new Java('java.text.SimpleDateFormat', "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); echo $formatter->format(new Java('java.util.Date')); ?> Expected result: ---------------- When I run the test sample,the apache httpd.exe occured an error and the script doesn't run correctly. ------------------------------------------------------------------------ -- Edit this bug report at http://pecl.php.net/bugs/bug.php?id=11965&edit=1

« previous php.pear.webmaster (#6024) next »