php4.1.2 and java

From: Date: Tue, 22 Oct 2002 17:34:06 +0000
Subject: php4.1.2 and java
Groups: php.install 
Request: Send a blank email to php-install+get-8880@lists.php.net to get a copy of this message
hi list, i have problems to install my php4.1.2 with the java extension! my system configuration is: - win 2k pro - apache 1.3.22 (path is "c:\apache") - php4.1.2 (path is "c:\php") - j2sdk1.4.0.02 (path is "c:\j2sdk1.4.0_02" and "c:\j2sdk1.4.0_02\jre") i have uncommented in php.ini "extension=php_java.dll" and even copied this file to the "c:\winnt\system32" folder. further more i have added at the end pf "php.ini" following "java section": [Java] java.class.path = "C:\PHP\java\php_java.jar" java.home = "C:\j2sdk1.4.0_02\jre" java.library = "C:\j2sdk1.4.0_02\jre\bin\server\jvm.dll" java.library.path = "C:\j2sdk1.4.0_02\jre\lib" after restarting the apache webserver i called up following little testscript (phpjavatest1.php): <?php $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"; ?> instead of a correct printout i get following error message on my ie6 browser: "Fatal error: java.lang.UnsatisfiedLinkError: no php_java in java.library.path in d:\webroot\phpjavatest1.php on line 2" so now i'm stucked and i have no idea anymore what to do. please will somebody help me with an understandable (for a newbee) installation information? maybe my php version does not assist java correct? thanks in advance raibru rainer.bruch@t-online.de

« previous php.install (#8880) next »