Re: Running java under php4 (PHP4 ext/java)

From: Date: Fri, 19 Jan 2001 18:40:12 +0000
Subject: Re: Running java under php4 (PHP4 ext/java)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-35683@lists.php.net to get a copy of this message
Fraser MacKenzie wrote: > Here is my configuration now: > > [Java] > java.class.path=/home/local/src/php-4.0.4/ext/java/php_java.jar > java.home=/home/local/java/jdk1.2.2 > > java.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20001214:/home/local/java/jdk1.2.2/jre/lib/i386:/home/local/java/jdk1.2.2/jre/lib/i386/classic:/home/local/java/jdk1.2.2/jre/lib/i386/green_threads Not sure if green_threads are supported by PHP/Java. Try replacing the green_threads specification with native_threads (if your JDK has this subdirectory). If I recall correctly, libhpi.so is in native_threads. Again, I'd suggest setting LD_LIBRARY_PATH temporarily to what you have up in java.library.path (after replacing green_threads with native_threads) and then run ldd libjava.so from the command line to see if everything is found. BTW, if your JDK doesn't have a native_threads subdirectory then you might need to use a different JDK for PHP/Java to work correctly. Did you ever mention what JDK you were using? > java.library=/home/local/java/jdk1.2.2/jre/lib/i386/libjava.so Simply use java.library=libjava.so (let it do the search). However, the above might work as is. Alex

« previous php.general (#35683) next »