I have a problem installing php_java bridge.
I'm running on WinXP SP2 system with Apache2.0.58 and PHP5.1.2, along with JDK 1.5.0_06.
I found two dll files for php_java extension. The first one named php_java.dll I downloaded from this site http://pecl4win.php.net/ which is very small, 29KB, and the second one named java-x86-windows.dll I found in JavaBridge.war from this site http://www.sourceforge.net/projects/php-java-bridge which is much larger, 167KB.
I copied all the jars files, including JavaBridge.jar, into folder java_lib located in my extension dir.
Here is the configuration in my php.ini
[JAVA]
;extension=java-x86-windows.dll
extension=php_java.dll
java.java="C:\Program Files\Java\jdk1.5.0_06\bin\javaw.exe"
java.class.path="C:\php-5.1.2-Win32\ext\java_lib\JavaBridge.jar"
java.home="C:\Program Files\Java\jdk1.5.0_06\bin"
java.library.path="C:\php-5.1.2-Win32\ext\java_lib"
java.library="C:\php-5.1.2-Win32\ext\java_lib"
java.log_level=4
When I specified php_java.dll as my extension, the web server could start well but running test.php failed. It said "Fatal: The loaded java extension is not the PHP/Java Bridge". When I used java-x86-windows.dll, the web server hung when I tried to start it.
How can I solve this problem?
ps: I'm sure that all the files' versions are compatible with my PHP.