note 54309 added to ref.java
| From: | abizkette at osu1 dot php dot net | Date: | Thu, 30 Jun 2005 05:47:28 +0000 |
| Subject: | note 54309 added to ref.java | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91175@lists.php.net to get a copy of this message | ||
the PHP-Java bridge still has bugs. i am using apache5.04 with PHP on WinXP(SP2).when i try to run
this,
----------------------------------------------------------------------
<?php
// get instance of Java class java.lang.System in PHP
$system = new Java('java.lang.System');
//java_require('c:/php5/tools.jar');
// 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'));
?>
----------------------------------------------------------------------
it crashes, and the "Error Report To Microsoft" pop out.still trying to integrate iReport
with PHP.
----
Manual Page -- http://www.php.net/manual/en/ref.java.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54309
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54309&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54309&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54309&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54309&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54309&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54309&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54309&report=yes
Search -- http://master.php.net/manage/user-notes.php