I got the following error messages in my browser:
Fatal error: Unable to load Java Library /usr/local/jdk1.1.8/lib/i386/green_threads/libjava.so, error: /usr/local/jdk1.1.8/lib/i386/green_threads/libjava.so: Undefined symbol "fmod" in /usr/local/share/doc/apache/java.php on line 2
Details:
PHP 4.0.6
FreeBSD 4.4
JDK 1.1.8 (FreeBSD port)
Apache 1.3.20
PHP info()
'./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-zlib' '--with-mysql=/usr/local' '--with-openssl=/usr' '--with-java' '--prefix=/usr/local' 'i386--freebsd4.4'
php.ini
[Java]
java.class.path=/usr/local/jdk1.1.8/lib/classes.zip
java.library.path=/home/thomas/php4/modules
extension_dir=/home/thomas/php4/modules
extension=libphp_java.so
Dir /home/thomas/php/modules
libphp_java.so
php_java.jar
java.php
<?php
$system = new Java('java.lang.System');
print 'Java version='.$system->getProperty('java.version').' <br>';
print 'Java vendor=' .$system->getProperty('java.vendor').' <br>';
print 'OS='.$system->getProperty('os.name').' '.
$system->getProperty('os.version').' on '.
$system->getProperty('os.arch').' <br>';
$formatter = new Java('java.text.SimpleDateFormat', "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");
print $formatter->format(new Java('java.util.Date'));
?>
any idea ?
greetings from berlin
thomas