Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2003 12:14:52 +0000
From:      Mark Ackroyd <mark@ackroyd.net>
To:        freebsd-java@freebsd.org
Subject:   Problem with Java on FreeBSD.
Message-ID:  <3FD85FBC.8090707@ackroyd.net>

next in thread | raw e-mail | index | archive | help
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@ackroyd.net







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FD85FBC.8090707>