Problem with Java on FreeBSD.
Mark Ackroyd
mark at ackroyd.net
Thu Dec 11 04:15:03 PST 2003
Hi,
I am not so sure where the problem lies with this. I have installed
JDK1.3.1 on a FreeBSD 4.9 server. It seems to work fine. I have written
a small java program and it compiles and runs without any issues.
I want to get the PHP intgration with java working, I must admit I know
more about compiling and tinkering with PHP source then java. So I have
set all the right options in PHP for this intergration and got the thing
to compile.
in my small PHP script to test the system is this.
#!/usr/local/bin/php -q
<?
$system_inst = new Java('java.lang.System');
echo $system_inst->getProperty("java.version");
?>
when this is run it produces this.
PHP Fatal error: Unable to load Java Library
/usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so, error:
/usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so: Undefined symbol
"setFPMode" in /root/tes on line 3
I know the setFPmode is due to the threads in java so I have set
LD_LIBRARY_PATH=/usr/local/jdk1.3.1/jre/lib/i386/green_threads
Either way this problem doesn`t seem to go away with the LD references?
anyone got an ideas of what I am doing wrong?
Mark
--
Mark Ackroyd
e: mark at ackroyd.net
More information about the freebsd-java
mailing list