From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 11:25:28 2007 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 B2F7F16A417 for ; Thu, 8 Nov 2007 11:25:28 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out3.tiscali.nl (smtp-out3.tiscali.nl [195.241.79.178]) by mx1.freebsd.org (Postfix) with ESMTP id 2B74E13C481 for ; Thu, 8 Nov 2007 11:25:27 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [195.241.149.28] (helo=guido.klop.ws) by smtp-out3.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1Iq5Eu-0007vo-R0 for ; Thu, 08 Nov 2007 12:08:01 +0100 Received: (qmail 28603 invoked from network); 8 Nov 2007 11:07:57 -0000 Received: from localhost (HELO guido.klop.ws) (127.0.0.1) by localhost with SMTP; 8 Nov 2007 11:07:57 -0000 To: "Norberto Meijome" , "FreeBSD Java ML" From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <20071108191052.3cf8ed20@meijome.net> Content-Transfer-Encoding: Quoted-Printable Date: Thu, 08 Nov 2007 12:07:55 +0100 Message-ID: In-Reply-To: <20071108191052.3cf8ed20@meijome.net> User-Agent: Opera Mail/9.24 (FreeBSD) Cc: Subject: Re: Javavm , 1.5 vs 1.6 under 7 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, 08 Nov 2007 11:25:28 -0000 On Thu, 08 Nov 2007 09:10:52 +0100, Norberto Meijome = wrote: > hi there, > I have the following VMs installed: > [betom@ayiin] [Thu Nov 8 19:05:28 2007] > /usr/home/betom > $ pkg_info | grep jdk > jdk-1.5.0.13p7,1 Java Development Kit 1.5.0 > jdk-1.6.0.2p2 Java Development Kit 1.6.0 > > [betom@ayiin] [Thu Nov 8 19:05:31 2007] > /usr/home/betom > $ cat /usr/local/etc/javavms > /usr/local/jdk1.6.0/bin/java > /usr/local/jdk1.5.0/bin/java # FREEBSD-JDK1.5.0 > > $ uname -srv > FreeBSD 7.0-BETA2 FreeBSD 7.0-BETA2 #2: Wed Nov 7 12:02:06 EST 200 > > From man javavm: > [....] > > By default, javavm will select the most ``native'' and up to date = > version > of the Java VM when a given symbolic link is used, invoking and = > passing > the arguments to the matching executable within the chosen Java = > VM. The > choice of Java VM may also be influenced by using environment = > variables > to constrain the version, vendor and operating system of the Java= = > VM. > > [...] > > I would expect javavm to pick 1.6 as the default VM, but it picks 1.5 > > $ java -version > java version "1.5.0_13-p7" > Java(TM) 2 Runtime Environment, Standard Edition (build = > 1.5.0_13-p7-root_08_nov_2007_16_03) > Java HotSpot(TM) Client VM (build 1.5.0_13-p7-root_08_nov_2007_16_03, = = > mixed mode > > It works ok if I export JAVA_VERSION=3D1.6 to my environment, but I wo= nder = > why 1.5 is considered the "more native and up to date version of the = > Java VM" > > thanks, > B Do you have JAVA_HOME set? -- = Ronald Klop Amsterdam, The Netherlands