Page 1 of 1

Installing java extension in PHP

Posted: Wed Sep 15, 2004 2:38 am
by potocnikn
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

try to do it like this :

Posted: Mon Dec 20, 2004 1:20 am
by pelegk2
[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";