Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Nov 2007 12:07:55 +0100
From:      "Ronald Klop" <ronald-freebsd8@klop.yi.org>
To:        "Norberto Meijome" <freebsd@meijome.net>, "FreeBSD Java ML" <freebsd-java@freebsd.org>
Subject:   Re: Javavm , 1.5 vs 1.6 under 7
Message-ID:  <op.t1gzvhe78527sy@guido.klop.ws>
In-Reply-To: <20071108191052.3cf8ed20@meijome.net>
References:  <20071108191052.3cf8ed20@meijome.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 08 Nov 2007 09:10:52 +0100, Norberto Meijome <freebsd@meijome.ne=
t>  =

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



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