|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-17 10:53 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 13:00:01 2025 UTC |
Description: ------------ Hi, I've a xampp installation, in WinXP, with: Apache 2 PHP 5.1.4 php.ini settings: java.class.path = "C:\Program Files\xampp\php\java\php_java.jar" java.home = "C:\Program Files\Java\j2re1.4.2_03" ;java.library = "C:\Program Files\Java\j2re1.4.2_03\bin\client\jvm.dll" java.library = "C:\Program Files\Java\j2re1.4.2_03\bin\server\jvm.dll" java.library.path = "C:\Program Files\xampp\php\ext" When a execute the script listed I get a Apache.exe error, "access violation" kind of error. Can anyone help me, please! Thanks in advance! 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("os.name")." ".$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"; ?>