|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40027 PHP Java Integration
Submitted: 2007-01-05 07:31 UTC Modified: 2007-01-05 15:16 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: mcharlesrk at yahoo dot com Assigned:
Status: Not a bug Package: Java related
PHP Version: 5.2.0 OS: windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mcharlesrk at yahoo dot com
New email:
PHP Version: OS:


 [2007-01-05 07:31 UTC] mcharlesrk at yahoo dot com
When i add jvm.dll in my php.ini, my sample.php throws 500 internal server error.

I am using php 5.2.0 , pecl 5.2.0 , jdk 1.5.0_04, apache 2.2.3 says "The Java extension is not available in PHP 5." 

is it true???

my php.ini 
java.class.path = "C:\php\ext\php_java.jar; E:\Java\jdk1.5.0_04\jre\lib;E:\Java\jdk1.5.0_04;D:\charles\projects\java"
java.home = "E:\Java\jdk1.5.0_04"

Reproduce code:
  $system = new Java("java.lang.System");
  print "Java version=".$system->getProperty("java.version")." <br>\n";
  print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
  print "OS=".$system->getProperty("")." ". $system->getProperty("os.version")." on ". $system->getProperty("os.arch")." <br>\n"; $formatter = new Java("java.text.SimpleDateFormat","EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");
  print $formatter->format(new Java("java.util.Date"))."\n";

Expected result:
javav version = xx
java vendor = xxx
OS = xx


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-05 15:16 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Java is not a core PHP extension.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Mar 04 09:01:29 2024 UTC