|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-16 19:23 UTC] alan at elhogar dot com
[2002-08-16 19:24 UTC] alan at elhogar dot com
[2002-08-17 00:11 UTC] kalowsky@php.net
[2002-08-17 23:36 UTC] alan at elhogar dot com
[2002-08-17 23:39 UTC] kalowsky@php.net
[2002-09-18 05:41 UTC] joao dot noronnha at oni dot pt
[2002-09-29 20:31 UTC] sniper@php.net
[2002-10-15 01:00 UTC] php-bugs at lists dot php dot net
[2009-09-10 20:51 UTC] victorhugo20034 at hotmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
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