note 54309 deleted from ref.java by jacques
| From: | jacques@php.net | Date: | Thu, 30 Jun 2005 06:27:05 +0000 |
| Subject: | note 54309 deleted from ref.java by jacques | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91179@lists.php.net to get a copy of this message | ||
Note Submitter: a bizkette
----
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.