Java/PHP Bridge

Relates to PHP and Java

This months PHP|Architect sample article gives a quick guide to Installing Java for PHP. The PHP manual suggest the method applied, of integrating Java into PHP, is not as stable as reversing the roles, and integrating PHP into a Java Servlet. All the same, finally get to use that Java DLL in the PHP extensions folder. Note the article does fail to emphasise that java.class.path must be quoted when including the path to custom classes, which did lead to a few minutes of hair tearing!

Posted on Friday, Sep 12, 2003 at 22:31:36.

Comments on Java/PHP Bridge (2)

α comment

Hi, i followed the instructions in the article. But, i still can't run the php file. My php.in file is under the windows folder. The following is what i changed for the php.in file. Could you tell me what is wrong?

[Java] ;java.class.path = .\php_java.jar java.class.path = "C:\php\extensions\php_java.jar;c:\path\to\file.jar" ;java.home = c:\jdk java.home = C:\j2sdk1.4.2_07 ;java.library = c:\jdk\jre\bin\hotspot\jvm.dll java.library = C:\j2sdk1.4.2_07\jre\bin\server\jvm.dll ;java.library.path = .\ java.library.path = C:\PHP\extensions

Thank you very much

Posted by shiva
Tuesday, May 17, 2005 at 06:11:58

β comment

Hi, you have to take the php-cgi.exe and php5ts.dll brought to you with the javaphpbridge stuff and copy both files into your PHP Installation Path —-> c:\php, than copy the javabridge.jar into c:\php5 and the bridge.dll file (dont know if this was the real filename but similar to that) into your Java SDK or JRE Installation path or into the java.class.path you've specified

Posted by -
Tuesday, Jul 05, 2005 at 13:54:39

Breadcrumbs Trail

[ Home ] -> TW Blog -> Sep 03 -> Java -> PHP Bridge
Site Map

The Severn Solutions website achieves the following standards:

[ XHTML 1.0 ] [ CSS 2 ] [ WAI AA ] [ Bobby AA ]

Page compiled in 0.030 seconds