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

From: Date: Fri, 19 Jan 2001 22:17:38 +0000
Subject: Re: Running java under php4 (PHP4 ext/java)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35739@lists.php.net to get a copy of this message
Yep. ldd libjava.so produces: libhpi.so => not found libnsl.so.1 => /lib/libnsl.so.1 (0x00143000) libdl.so.2 => /lib/libdl.so.2 (0x0015a000) libjvm.so => not found libc.so.6 => /lib/libc.so.6 (0x0015f000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Now: libhpi.so is located in: ./green_threads/libhpi.so ./native_threads/libhpi.so and libjvm.so is located in: ./classic/libjvm.so Perhaps I have to set them up in my LD_LIBRARY_PATH for my current shell? Fraser On Fri, 19 Jan 2001, Alex Akilov wrote: > Fraser MacKenzie wrote: > > > 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. > > Relax and believe! We're almost there but you mustn't lose faith. > > Let's leave PHP out of things and just figure out your JDK. Did you try > ldd libjava.so with LD_LIBRARY_PATH set up as I suggested? > Also, does your native_threads directory contain libhpi.so? > Last but not least, mind telling me what JDK you're using? > > Alex > > >

« previous php.general (#35739) next »