Page 1 of 1

php with java support

Posted: Sat Jun 10, 2006 8:59 am
by linuxuser
I am intergrating php for java support.
Fedora Core 3
php 4.3.9
http 2.0.52-3
java j2sdk1.4.2_12

compiled without errors.

php.ini file has the following entry

[Java]
java.class.path = /usr/lib/php4/php_java.jar
java.home = /usr/local/j2sdk1.4.2_12
java.library = /usr/local/j2sdk1.4.2_12/jre/lib/i386/libjava.so
java.library.path = /usr/lib/php4
extension_dir = /usr/lib/php4
extension = java.so

But phpinfo() does not show the java support in the browser?

Pls help.

Posted: Sat Jun 10, 2006 4:18 pm
by Christopher
I believe the extension_dir = /usr/lib/php4 and extension = java.so lines need to come before the [Java] block. there is a section for loading extensions.

Posted: Mon Jun 12, 2006 2:30 am
by linuxuser
Thanks for ur reply, but did not work. any other idea?

Can you post few links which would help more?