From owner-freebsd-java@FreeBSD.ORG Thu Dec 31 11:02:33 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 458981065670 for ; Thu, 31 Dec 2009 11:02:33 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (ip-58-28-152-174.static-xdsl.xnet.co.nz [58.28.152.174]) by mx1.freebsd.org (Postfix) with ESMTP id E8E278FC08 for ; Thu, 31 Dec 2009 11:02:32 +0000 (UTC) Received: by chen.org.nz (Postfix, from userid 1000) id 7945D2840C; Fri, 1 Jan 2010 00:02:30 +1300 (NZDT) Date: Fri, 1 Jan 2010 00:02:30 +1300 From: Jonathan Chen To: Ronald Klop Message-ID: <20091231110230.GA6912@osiris.chen.org.nz> References: <20091230172750.09C9D17127@bsd.mvh> <20091230185809.GA91259@osiris.chen.org.nz> <1262219967.12298.7.camel@bsd.mvh> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: Mike Harding , freebsd-java@freebsd.org Subject: Re: JBoss5 port failure (Was: no subject) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2009 11:02:33 -0000 On Thu, Dec 31, 2009 at 11:21:47AM +0100, Ronald Klop wrote: > On Thu, 31 Dec 2009 01:39:27 +0100, Mike Harding wrote: > > >I removed all of the jdks except openjdk, and jboss5 does install and > >run. Thanks you all - how do I select the jdk to use for a port if I > >have multiple ones installed? > > Not sure, but this could do it. > # export JAVA_HOME=/usr/local/openjdk6 > # cd /usr/ports/../.. > # make ... > > It depends on how the port detects the JVM. Try adding the following line to /etc/make.conf: JAVA_PREFERRED_PORTS=JAVA_PORT_NATIVE_OPENJDK_JDK_1_6 Cheers. -- Jonathan Chen | To do is to be -- Nietzsche | To be is to do -- Sartre | Scooby do be do -- Scooby