ID:               29225
 Comment by:       mz at salon-margit dot de
 Reported By:      php4web at php4web dot com
 Status:           Open
 Bug Type:         Java related
 Operating System: windows xp professtional
 PHP Version:      5.0.0
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2004-07-17 13:18:25] 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 !



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29225&edit=1

Reply via email to