Re: [PHP4BETA] A Java Problem...
| From: | rubys at us dot ibm dot com | Date: | Mon, 28 Feb 2000 13:06:43 +0000 |
| Subject: | Re: [PHP4BETA] A Java Problem... | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-11117@lists.php.net to get a copy of this message | ||
Hsin-Mu Tsai wrote:
> Fatal error: Cannot instanciate non-existant class: java in
> /home/jdchiou/test1/htdocs/jver.php on line 3
This generally means that the libphp_java.so extension did not load. This
is generally the result of a prior error. Like the one you mention below:
> PHP Fatal error: Unable to load dynamic library
> '/tmp/php-4.0b4pl1/modules/libp
> hp_java.so' - /tmp/php-4.0b4pl1/modules/libphp_java.so: undefined symbol:
> JNI_GetDefaultJavaVMInitArgs in Unknown on line 0
This generally means that the libphp_java extension could not find Kaffe.
One way to address this is to place the Kaffe libraries into your
LD_LIBRARY_PATH environment variable.
> My apache is compiled to a DSO mode. (Is this the right mode that the
> ext/java/README file said ?)
Yes. But if you are having troubles, perhaps it might make sense to build
PHP as a standalone executable first (CGI), and get the samples working
from the shell first.
- Sam Ruby