From owner-freebsd-java Wed Jun 12 13:12:18 2002 Delivered-To: freebsd-java@freebsd.org Received: from recourse.com (mail.recourse.com [206.171.10.25]) by hub.freebsd.org (Postfix) with ESMTP id 085D737B400 for ; Wed, 12 Jun 2002 13:12:15 -0700 (PDT) Received: from recourse.com (localhost [127.0.0.1]) by recourse.com (8.12.1/8.12.1) with ESMTP id g5CKBDVI006443; Wed, 12 Jun 2002 13:11:13 -0700 (PDT) Received: from localhost (rross@localhost) by recourse.com (8.12.1/8.12.1/Submit) with ESMTP id g5CKBDK8006440; Wed, 12 Jun 2002 13:11:13 -0700 (PDT) Date: Wed, 12 Jun 2002 13:11:13 -0700 (PDT) From: "Robert F. Ross" X-Sender: rross@recourse.com To: Josh Levine Cc: freebsd-java@FreeBSD.ORG Subject: Re: Apache+PHP+Java In-Reply-To: <3D07A193.68536CEC@levindustries.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You need a linux libnsl if it's the linux jdk you're running, not a freebsd libnsl. Symlinking the wrong platform libs won't help much since it's being emulated. The native JDKs are in /usr/ports, but threading/JNI don't seem to be as stable in them as with the linux JDK. IANAE. Robert Ross Senior Software Engineer Recourse Technologies, Inc. On Wed, 12 Jun 2002, Josh Levine wrote: > Hi! > > I'm trying to compile PHP with Java support, and am running into some > problems (about two days worth so far). I guess my short question is, > which JDK port should I be using to do this? > > Currently, I have linux-jdk1.4.0.01 installed and am trying to use > that. I've read a lot about a FreeBSD native version - does this > actually exist? If so, what's the port name for it? Anyway, here's > what I have in my php.ini file: > > [Java] > java.class.path = /usr/local/lib/php/php_java.jar > java.home = /usr/local/linux-jdk > java.library = /usr/local/linux-jdk/jre/lib/i386/server/libjvm.so > java.library.path = /usr/local/lib/php/extensions:/usr/compat/linux/lib > extension=libphp_java.so > > And here's the error message I receive: > > Unable to load Java Library > /usr/local/linux-jdk/jre/lib/i386/server/libjvm.so, error: Shared object > "libnsl.so.1" not found in /usr/home/research/htdocs/java.php on line 3 > > I've tried symlinking the various objects it needs to /usr/local/lib, > but then the script just didn't work, and the Apache error log contained > a series of these messages: > > [notice] child pid 50819 exit signal Bus error (10) > > Any ideas? > > Thanks in advance for your help, > Josh Levine > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message