Javavm , 1.5 vs 1.6 under 7
freebsd at meijome.net
Thu Nov 8 00:17:49 PST 2007
I have the following VMs installed:
[betom at ayiin] [Thu Nov 8 19:05:28 2007]
$ pkg_info | grep jdk
jdk-184.108.40.206p7,1 Java Development Kit 1.5.0
jdk-220.127.116.11p2 Java Development Kit 1.6.0
[betom at ayiin] [Thu Nov 8 19:05:31 2007]
$ cat /usr/local/etc/javavms
/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"
"Great spirits have often encountered violent opposition from mediocre minds."
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