Inspired by this question on Stackoverflow, I noticed that my Java control panel reports that I have the latest version of Java installed (and I know that, because Safari is not blocking the plugin any longer), while the command line version seems to be different.
From Terminal:
$ java -version
java version "1.7.0_06-ea"
Java(TM) SE Runtime Environment (build 1.7.0_06-ea-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
Java 1.7.0_06 is not the latest version, as far as I know.
Hence my question:
If I install Java 1.7 from Oracle's web site and then rely on the "automatic" updating that it provides, will the command line version be stuck with the old version? A bit confused here.
which java
give? – mmmmmm Feb 14 '13 at 14:43which java
gives/usr/bin/java
, which is a symbolic link to/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
. I imagine the old version I get on command line is the one I originally installed, while the one that the control panel refers to is the one that Safari uses. Still confused, though. – Monolo Feb 14 '13 at 14:47