|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18952 java does not unload
Submitted: 2002-08-16 19:21 UTC Modified: 2002-10-15 01:00 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: alan at elhogar dot com Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.2.2 OS: WIN2000
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: alan at elhogar dot com
New email:
PHP Version: OS:


 [2002-08-16 19:21 UTC] alan at elhogar dot com
If I try the following code it only executes once and then then when I click refresh it doesnt execute, and then when I click refresh again, it does execute again.

  // get instance of Java class java.lang.System in PHP

  $system = new Java('java.lang.System');

  // demonstrate property access
  print 'Java version='.$system->getProperty('java.version').' <br>';
  print 'Java vendor=' .$system->getProperty('java.vendor').' <br>';
  print '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");

  print $formatter->format(new Java('java.util.Date'));


this is the dislay I get

Java version=1.3.1_04 
Java vendor=Sun Microsystems Inc. 
OS=Windows 2000 5.0 on x86 
Friday, August 16, 2002 at 11:17:37 PM Greenwich Mean Time
Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0
Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0
Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0

then when I click refresh I get

Fatal error: Unable to create Java Virtual Machine in E:\home\websites\html\testjava.php on line 5

then when I click refresh again then it goes back to the original display.

It looks like java is not unloading or something like that


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-16 19:23 UTC] alan at elhogar dot com
my php.ini settings are

 java.class.path = c:\php\extensions\php_java.jar
 java.home = C:\Program Files\JavaSoft\JRE\1.3.1_04\bin
 java.library = C:\Program Files\JavaSoft\JRE\1.3.1_04\bin\hotspot\jvm.dll
 java.library.path = C:\php\extensions
 [2002-08-16 19:24 UTC] alan at elhogar dot com
also, once more detail, I am running IIS5
 [2002-08-17 00:11 UTC]
Dup of many many many other Java bugs... at least you got yours to load once!
 [2002-08-17 23:36 UTC] alan at elhogar dot com
so what are you saying, there is no hope to get this working? how can I help?
 [2002-08-17 23:39 UTC]
I'm saying that the maintainer has disappeared.  I haven't been very lucky to get it working, and thus have nothing to offer yet.  If you have a copy of MSVC you are more than welcome to download the source, and begin doing patches that may or may not help your program.  Most likely many of them will be accepted and applied.  
 [2002-09-18 05:41 UTC] joao dot noronnha at oni dot pt
Hi, I'm working with Win2K and got the same 3 warnings and it is simply a configuration problem! :)

All I had to do was remove the php_java.dll from c:\php
(where I had copied it to) and leave only the original in the c:\php\extensions directory.
Then add the following line to the Java section in php.ini
extension_dir = .\extensions
(the same as java.library.path)

and it works fine! ;)
Cheers from Portugal,
 [2002-09-29 20:31 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-10-15 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-09-10 20:51 UTC] victorhugo20034 at hotmail dot com
me parece buena la pagina
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 08:01:23 2020 UTC