Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jan 2010 00:02:30 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Ronald Klop <ronald-freebsd8@klop.yi.org>
Cc:        Mike Harding <mvh@ix.netcom.com>, freebsd-java@freebsd.org
Subject:   Re: JBoss5 port failure (Was: no subject)
Message-ID:  <20091231110230.GA6912@osiris.chen.org.nz>
In-Reply-To: <op.u5sselhx8527sy@82-170-177-25.ip.telfort.nl>
References:  <20091230172750.09C9D17127@bsd.mvh> <20091230185809.GA91259@osiris.chen.org.nz> <op.u5rnnbg78527sy@82-170-177-25.ip.telfort.nl> <1262219967.12298.7.camel@bsd.mvh> <op.u5sselhx8527sy@82-170-177-25.ip.telfort.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 31, 2009 at 11:21:47AM +0100, Ronald Klop wrote:
> On Thu, 31 Dec 2009 01:39:27 +0100, Mike Harding <mvh@ix.netcom.com> 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
<jonc@chen.org.nz>                 |      To be is to do  -- Sartre 
                                   |      Scooby do be do -- Scooby



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