help with php java support
| From: | Spencer Gibb | Date: | Fri, 13 Apr 2001 20:05:29 +0000 |
| Subject: | help with php java support | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48479@lists.php.net to get a copy of this message | ||
help! I'm trying to install java support for php
here is the java section from php.ini
[java]
java.class.path=/usr/lib/php/extensions/php_java.jar
java.home=/apps/java
java.library.path=/usr/lib/php/extensions
java.library=/usr/lib/php/extensions/libphp_java.so
extension=libphp_java.so
here are the contents of my php:
<?
$s = new Java ("java.lang.String", "This is a test String");
echo "s = $s\n";
?>
when I first try and load my page I get:
Fatal error: Unable to locate CreateJavaVM function in
/var/www/html/java.php on line 2
after a few reloads I get, the following and the phpinfo java section is
reset, any ideas?
Fatal error: Unable to load Java Library /lib.so, error: /lib.so: cannot
open shared object file: No such file or directory in
/var/www/html/java.php on
line 2
--
Spencer Gibb
spencerg@byu.edu