|
单位要配置使php支持java的调用,我已经安装了jdk1.4.2,并且在apachect文件中增加了export LD_LIBRARY_PATH=/jdkpath/jar/i386:/jdkpath/jar/i386/server,并且修改了php.ini文件,增加了
[Java]
java.class.path=/usr/local/lib/php/php_java.jar
java.home=/usr/java
extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20020429
extension=java.so
运行phpinfo没有发现java扩充,我的环境是RedHat8.0+Apache1.3.27+php4.3.2
,编译中加了参数 --with-java=/usr/java/j2sdk1.4.2 |
|