Fraser,
Yes, you must set your LD_LIBRARY_PATH prior to running ldd. In a terminal,
export
LD_LIBRARY_PATH=/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/native_threads
and rerun ldd libjava.so. If everything works, leave LD_LIBRARY_PATH alone and in
your php.ini reset your java.library.path to the following:
java.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20001214
Run php <path to php src>/ext/java/jver.php from the command line to verify that
things are working (that is, provided your php and php.ini are visible from
whatever directory you're running).
If everything works, you can try combining LD_LIBRARY_PATH and your
java.library.path into a single specification (i.e.
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/native_threads)
and you should be good to go. If the latter doesn't work, then your php.ini is
not being found or java.library.path is not being interpreted correctly. An
alternative is to set LD_LIBRARY_PATH in your (root?) profile to include all the
directories above (or better yet, add them to /etc/ld.so.conf) and restart your
system.
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]