Well-Known Member
May 8, 2007
For a payment gateway, I need to build PHP with Java support. The integration manual says:

"To include Java support in your PHP build you must add the option –with-
Where DIR points to the base install directory of your JDK.
2. You have to configure php with following command.
./configure --with-apxs2=/usr/local/apache2/bin/apxs –with-java[=Dir].
3. make
4. make install. "
I do have JDK 1.4.2 installed at /usr/local/. What is the easiest way to build PHP with java support? Use easyapache?


Okay, when I clicked on the 'More info' link next to Java in EasyApache, it took me to the following page:

Unfortunately, the page also warns that the php extension is unstable and may be given up in future php versions.

The java servlet version seems to be about Tomcat and that is the last thing I want on my server:

The comments on that page then point to a php-java bridge and recommend it highly:

Would anyone here recommend that I use this bridge, given my original context as set out in the payment gateway integration doc that I quoted above?

Thanks in advance,
Last edited: