FreeBSD + ext/java
| From: | Allie Micka | Date: | Mon, 11 Feb 2002 02:15:10 +0000 |
| Subject: | FreeBSD + ext/java | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-5981@lists.php.net to get a copy of this 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