m mokhtar at gmail dot com
30-Oct-2005 04:03 
Getting PHP JavaBridge to work with PHP5 on windows server:
====================================
1- Install Java J2EE 1.5 + JDK 1.4 (which includes application server/deploy tool/etc...)
2- download pecl-5.0.5-Win32.zip and php-java-bridge_2.0.8.zip, which will include 
extra dll(s)
   - unpack pecl pkg to your extensions folder, in PHP5 its ext.
   - unpack java-Bridge to root php folder, in my case its simply C:\PHP
   Note: the java-Bridge inculdes new versions of certain files like php_java.dll
   so, it would be wise to rename your old files that came with PECL pkg for example
   file_old, to rollback at anytime. 
In order to deploy/test Java-Bridge .war onto your java application server follow these steps  
http://cvs.sourceforge.net/viewcvs.p...p-java-bridge/
INSTALL.WINDOWS?view=markup 
Note: move JavaBridge.jar to your extensions folder. and in test.php file that came 
with Java-Brdige package change line java_require("test/arrayToString.jar"); 
to java_require("tests.php4/arrayToString.jar"); 
Add the following to your php.ini file and restart server:-
java.classpath = "location of JavaBridge.jar file...i.e. to your PHP extensions folder\
JavaBridge.jar,also any other extra java files that you'll be instanciating using your php script"
java.java_home = "location of jdk\bin"
java.libpath = "location of php_java.dll file...i.e. also to your PHP extensions folder" 
happy integration 
Cheers!!