I'm trying to enable JAVA extension in PHP 5.0.1 on Apache 1.3.31 on WIN XP and JDK 1.2.2 installed
I set up php.ini file with these settings:
[java]
java.class.path=c:/wamp/php/php_java.jar
java.home = C:/jdk1_2_2/bin
java.library = C:/jdk1_2_2/jre/bin/classic/jvm.dll
java.library.path = C:/wamp/php/ext
After restart of Apache, when I try to open simple example (from PHP help)
I get response from web server: Cannot find server or DNS Error.
If I open other PHP files, they are served normally.
So I wonder, where could be thje problem. Is it maybe in wrong version of PHP_JAVA.DLL file? Or somewhere else?
Thax for your ideas!!
Niko
Installing java extension in PHP
Moderator: General Moderators
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
try to do it like this :
[Java]
java.class.path = "C:\PHP\javaclass;C:\PHP\extensions\php_java.jar";
java.home = "C:\j2sdk1.4.1_06\bin";
java.library = "C:\j2sdk1.4.1_06\jre\bin\client\jvm.dll";
java.library.path = "C:\PHP\extensions";