|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57821 can php5.2.3 support Java Integration?
Submitted: 2007-09-03 03:54 UTC Modified: 2007-09-03 12:20 UTC
From: yzb81 at 163 dot com Assigned:
Status: Not a bug Package: PECL bug system (PECL)
PHP Version: 5.2.1 OS: Windows XP SP2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: yzb81 at 163 dot com
New email:
PHP Version: OS:


 [2007-09-03 03:54 UTC] yzb81 at 163 dot com
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:

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('') . ' ' .
             $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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-03 12:20 UTC] greg at chiaraquartet dot net
this is not a bug, you need technical support.  please 
email for support questions
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 12:01:28 2024 UTC