From owner-freebsd-java@FreeBSD.ORG Thu Dec 11 04:15:03 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11BDC16A4CE for ; Thu, 11 Dec 2003 04:15:03 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 5314043D33 for ; Thu, 11 Dec 2003 04:14:57 -0800 (PST) (envelope-from mark@ackroyd.net) Received: (qmail 16798 invoked from network); 11 Dec 2003 12:14:56 -0000 Received: from dsl-217-155-240-22.zen.co.uk (HELO ackroyd.net) (217.155.240.22) by relay.pair.com with SMTP; 11 Dec 2003 12:14:56 -0000 X-pair-Authenticated: 217.155.240.22 Message-ID: <3FD85FBC.8090707@ackroyd.net> Date: Thu, 11 Dec 2003 12:14:52 +0000 From: Mark Ackroyd User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5; MultiZilla v1.5.0.3g) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Problem with Java on FreeBSD. X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2003 12:15:03 -0000 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 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