Wednesday, 3 April 2019

how to install java 1.7 runtime on macos 10.9 mavericks?

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.

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...