From owner-freebsd-java Wed Jun 12 12:32:25 2002 Delivered-To: freebsd-java@freebsd.org Received: from attila.stevens-tech.edu (attila.stevens-tech.edu [155.246.14.11]) by hub.freebsd.org (Postfix) with ESMTP id C5CDB37B40D for ; Wed, 12 Jun 2002 12:32:17 -0700 (PDT) Received: from levindustries.com (jlevine-1.u05.stevens-tech.edu [155.246.211.36]) by attila.stevens-tech.edu (SGI-8.9.3/8.9.3/7) with ESMTP id PAA97566 for ; Wed, 12 Jun 2002 15:32:16 -0400 (EDT) Message-ID: <3D07A193.68536CEC@levindustries.com> Date: Wed, 12 Jun 2002 15:31:31 -0400 From: Josh Levine X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: Apache+PHP+Java Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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