Javavm , 1.5 vs 1.6 under 7
Norberto Meijome
freebsd at meijome.net
Thu Nov 8 00:17:49 PST 2007
hi there,
I have the following VMs installed:
[betom at 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 at 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=1.6 to my environment, but I wonder why 1.5 is considered the "more native and up to date version of the Java VM"
thanks,
B
_________________________
{Beto|Norberto|Numard} Meijome
"Great spirits have often encountered violent opposition from mediocre minds."
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 been Warned.
More information about the freebsd-java
mailing list