|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-07-17 13:18 UTC] php4web at php4web dot com
Description: ------------ this is no Java integration at all in PHP 5 ! there are dll but there no instrction or installation note the setting from php.ini for Java is removed ! PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 23:00:01 2025 UTC |
java integration failure using: ------------------------------- *CLI Mode *OS: Windows 2000 pro SP4 *PHP 5.0.2 (cli) (built: Sep 24 2004 01:25:41) *Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04) Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) -- PHP.ini: extension=php_java.dll -- Test via Docu-Example: <?php // 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')); ?> -- Results in: (translated) (Windows) Program failure: php.exe caused an error and got shut down. Restart the program. A failure protocol is created. -- PHP-Info for JAVA: java.class.path no value no value java.home no value no value java.library jvm.dll jvm.dll java.library.path no value no value -- Best Regards mz.