Re: PHP & JAVA Install
| From: | Alex Akilov | Date: | Wed, 07 Feb 2001 14:22:12 +0000 |
| Subject: | Re: PHP & JAVA Install | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-1971@lists.php.net to get a copy of this message | ||
Stanton Schell wrote:
> Here it is:
>
> [Java]
> java.class.path=/home/stanton/apache/live2/conf/php_java.jar
> java.home=/usr/java/jdk1.3
> java.library.path=/home/stanton/apache/php-4.0.4pl1/modules
> java.library=libphp_java.so
> extension_dir=/home/stanton/apache/php-4.0.4pl1/modules
> extension=libphp_java.so
Your problem is the java.library specification. It's supposed to specify the
name of the of the Java VM shared library (not the PHP/Java JVM wrapper which
is what you specified). Try the following:
java.library=libjava.so
Also, depending on which jdk you're using you have to figure out which jdk
directories contain supporting shared libraries for libjava.so and add those
directories to your java.library.path. Try running ldd libjava.so (in the jdk
subdirectory where libjava.so is located) to get an idea of which shared
libraries it depends on. Note that if your JDK contains a hotspot
subdirectory and a classic subdirectory that you should normally choose
hotspot. Likewise, given a choice between native_threads and green_threads,
you should choose native_threads.
Alex