From owner-freebsd-java@FreeBSD.ORG Thu Dec 22 17:34:22 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 E1EE916A41F for ; Thu, 22 Dec 2005 17:34:22 +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 6C12D43D91 for ; Thu, 22 Dec 2005 17:33:29 +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.4/8.13.4) with ESMTP id jBMHXHoI004078; Thu, 22 Dec 2005 18:33:17 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.4/8.13.4/Submit) id jBMHXCRo002232; Thu, 22 Dec 2005 18:33:12 +0100 (CET) (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: Thu, 22 Dec 2005 18:33:12 +0100 From: Herve Quiroz To: "Thomas T. Veldhouse" Message-ID: <20051222173312.GA51505@arabica.esil.univ-mrs.fr> Mail-Followup-To: "Thomas T. Veldhouse" , freebsd-java@freebsd.org References: <43AADF4E.5090506@veldy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43AADF4E.5090506@veldy.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-java@freebsd.org Subject: Re: What creates java links in /usr/local/bin? 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, 22 Dec 2005 17:34:23 -0000 On Thu, Dec 22, 2005 at 11:15:58AM -0600, Thomas T. Veldhouse wrote: > What process is creating the links to the JDK in /usr/local/bin? I have > both JDK1.4 and JDK1.5 installed (both native), and the links all > currently point to 1.4. Is there a utility that will relink to the 1.5 > binaries, or will I have to do this manually? No, the links should not point to 1.4 binaries. They should all point to /usr/local/bin/javavm. Actually this is a feature provided by javavmwrapper. See javavm(1) for further information. If you want to be able to use Java 1.5 via /usr/local/bin/java, you may either: Set JAVA_HOME to /usr/local/jdk1.5.0: $ JAVA_HOME=/usrl/local/jdk1.5.0 java -version java version "1.5.0-p2" Or unset JAVA_HOME and set JAVA_VERSION to 1.5: $ unset JAVA_HOME ; JAVA_VERSION=1.5 java -version java version "1.5.0-p2" If you want 1.5 to become the default JDK for all users in the system, just set this in /etc/make.conf: JAVA_PREFERRED_PORTS= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5 Herve