From owner-freebsd-java@FreeBSD.ORG Tue Sep 6 03:30:45 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org 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 2F13916A41F for ; Tue, 6 Sep 2005 03:30:45 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84DAE43D45 for ; Tue, 6 Sep 2005 03:30:43 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost [127.0.0.1]) by arabica.esil.univ-mrs.fr (8.13.3/8.13.3) with ESMTP id j863Ug7n028180; Tue, 6 Sep 2005 05:30:42 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.3/8.13.3/Submit) id j863Uf5P028179; Tue, 6 Sep 2005 05:30:41 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Tue, 6 Sep 2005 05:30:41 +0200 From: Herve Quiroz To: Achilleus Mantzios Message-ID: <20050906033041.GB27963@arabica.esil.univ-mrs.fr> Mail-Followup-To: Achilleus Mantzios , Poul =?iso-8859-1?Q?M=F8ller?= Hansen , freebsd-java@freebsd.org References: <431C5CAF.3080202@pbnet.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-java@freebsd.org, Poul =?iso-8859-1?Q?M=F8ller?= Hansen Subject: Re: Setting system default java 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: Tue, 06 Sep 2005 03:30:45 -0000 On Mon, Sep 05, 2005 at 05:52:38PM +0300, Achilleus Mantzios wrote: > O Poul M??ller Hansen ?????? ???? Sep 5, 2005 : > > > I have just installed jdk15 on FreeBSD 5.3, > > until now I have been using jdk14. > > > > How do I set the jdk15 as system default ? > > There are some symlinks in /usr/local/bin which I haven't made manually. > > So I have probably been running some command setting it up, but what > > command ? > > Install javavmwrapper in /usr/ports/java/javavmwrapper > then edit /usr/local/etc/javavms There are several ways to achieve this, and editing /usr/local/etc/javavms is not a practice I would recommend, given the file is automatically generated when you install or deinstall ports. You may set the following in /etc/make.conf: JAVA_PREFERRED_PORTS= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5 Or you may define JAVA_VERSION=1.5 in your environement. You may also just define JAVA_HOME=/usr/local/jdk1.5.0 in your environement. The main point of the first approach is the fact that the setting is system-wide, whereas the other ones are user-specific. Herve