#18952 [Dup]: java does not unload
| From: | alan at elhogar dot com | Date: | Sun, 18 Aug 2002 03:36:18 +0000 |
| Subject: | #18952 [Dup]: java does not unload | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17159@lists.php.net to get a copy of this message | ||
ID: 18952
User updated by: alan@elhogar.com
Reported By: alan@elhogar.com
Status: Duplicate
Bug Type: Java related
Operating System: WIN2000
PHP Version: 4.2.2
New Comment:
so what are you saying, there is no hope to get this working? how can I
help?
Previous Comments:
------------------------------------------------------------------------
[2002-08-17 00:11:53] kalowsky@php.net
Dup of many many many other Java bugs... at least you got yours to load
once!
------------------------------------------------------------------------
[2002-08-16 19:24:42] alan@elhogar.com
also, once more detail, I am running IIS5
------------------------------------------------------------------------
[2002-08-16 19:23:29] alan@elhogar.com
my php.ini settings are
[Java]
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:21:53] alan@elhogar.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.
<?
error_reporting(255);
// 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('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");
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18952&edit=1