I tried to install Java 7 Update 51.pkg, downloaded from here (http://java.com/en/download/mac_download.jsp?locale-=en), following the instructions here (http://java.com/en/download/help/mac_install.xml).
After the installation, in terminal, issuing java -version
reports:
TimsMacBookAir:compiler-latest tim$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
I tried using java_home to report the installed versions:
TimsMacBookAir:~ tim$ /usr/libexec/java_home -v 1.7 --exec javac -version
Unable to find any JVMs matching version "1.7".
javac 1.6.0_65
TimsMacBookAir:~ tim$ /usr/libexec/java_home -v 1 --exec javac -version
javac 1.6.0_65
I tried running the java package multiple times, rebooting, etc.
Even after installing with apparent success, /System/Library/Frameworks/JavaVM.framework/Versions/
does NOT list java 1.7 being installed, and as such I can't use https://stackoverflow.com/questions/12757558/installed-java-7-on-mac-os-x-but-terminal-is-still-using-version-6.
I am trying to run java at the command line. I don't need to use java in browsers, nor care if it works in browsers or not. I also cannot find the "java preferences" control panel / applet anywhere.