Re: Running java under php4 (PHP4 ext/java)
| From: | Fraser MacKenzie | Date: | Sat, 20 Jan 2001 14:28:50 +0000 |
| Subject: | Re: Running java under php4 (PHP4 ext/java) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35801@lists.php.net to get a copy of this message | ||
WAHOOOOO!!!!! It works! Thanks Alex!!!!!!
Fraser
On Fri, 19 Jan 2001, Alex Akilov wrote:
> 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
>
>
>