php-install Digest 11 Feb 2002 02:15:16 -0000 Issue 694
Topics (messages 5981 through 5981):
FreeBSD + ext/java
5981 by: Allie Micka
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I have searched the internet for a solution to this one, and have found
only questions - no answers.
I am trying to install ext/java on FreeBSD 4.3-RELEASE with ANY jdk, and
currently I'm working with jdk1.2.2 from the ports collection.
in my apachectl script I have:
---
export LD_LIBRARY_PATH=/usr/local/lib/php:/usr/local/jdk1.2.2/jre/lib/i386:
/usr/local/jdk1.2.2/jre/lib/i386/classic:/usr/local/jdk1.2.2/jre/lib/i386/
green_threads
---
and the relevant chunk of php.ini looks like:
---
java.class.path=/usr/local/lib/php_java.jar
java.library.path=/usr/local/lib/php:/usr/local/jdk1.2.2/jre/lib/i386:/usr/
local/jdk1.2.2/jre/lib/i386/classic:/usr/local/jdk1.2.2/jre/lib/i386/green_threads
extension_dir=/usr/local/lib/php
extension=libphp_java.so
---
However, when accessing a php script containing a java call, I get:
---
Fatal error: Unable to locate CreateJavaVM function in java.php on line 6
---
Thanks in advance,
Allie Micka
--- End Message ---