From owner-freebsd-java@FreeBSD.ORG Thu Nov 8 08:17:48 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 E37D616A468 for ; Thu, 8 Nov 2007 08:17:48 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id 8986F13C4B0 for ; Thu, 8 Nov 2007 08:17:48 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 1935 invoked from network); 8 Nov 2007 02:11:00 -0600 Received: from 124-170-22-248.dyn.iinet.net.au (HELO localhost) (124.170.22.248) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 8 Nov 2007 02:11:00 -0600 Date: Thu, 8 Nov 2007 19:10:52 +1100 From: Norberto Meijome To: FreeBSD Java ML Message-ID: <20071108191052.3cf8ed20@meijome.net> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: 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 08:17:49 -0000 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=20 /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 =46rom man javavm:=20 [....] 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. T= he 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 wonder = why 1.5 is considered the "more native and up to date version of the Java V= M" thanks, B _________________________ {Beto|Norberto|Numard} Meijome "Great spirits have often encountered violent opposition from mediocre mind= s." Albert Einstein I speak for myself, not my employer. Contents may be hot. Slippery when wet= . Reading disclaimers makes you go blind. Writing them is worse. You have b= een Warned.