If I don't actually specify the entire path to libjava.so, I get the
following error:

Fatal error: Unable to load Java Library libjava.so,
error: libhpi.so: cannot open shared object file: No such file or
directory in /home/rondaks_portal/httpd/docs/k2test/index.php3 on line 34

So, when I actually specify the full path, and change the green_threads to
native_threads I get the same error.

This is driving me nuts.

I appreciate all the help Alex and I hope my madness is helping somebody
else out there.

Fraser


On Fri, 19 Jan 2001, Alex Akilov wrote:

> 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
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to