What is the link to install JDK7 (Java 7) on Mac OS X 10.7.3?
What version does it install?
Where does it install on my box?
How do I use it?
Mac OS X 10.7. 3 and above: Under System Preferences click on the Java icon to access the Java Control Panel which will list your Java version. If you do not see a Java icon under System Preferences, Java 7 or later versions is not installed.
Download Java SE 7u4 from Oracle. (This is 64-bit only)
This installs to /Library/Java/JavaVirtualMachines/1.7.0.jdk
.
However, when you run java -version
it will still output 1.6
or some other old version. Follow the readme directions below:
Open Java Preferences
in /Applications/Utilities
. Drag Java SE 7
to the top. It will now be your default JVM. Run java -version
again, and you should see something like:
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-bxx)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b17, mixed mode)
Once this is complete, a new install of Eclipse should select JDK7 by default. Otherwise:
Eclipse
->Preferences...
->Java
->Installed JREs
Add...
Standard VM
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
into JRE home
JRE name
to something useful like Java SE 7
Finish
Make sure that you aren't setting JAVA_HOME in your .bash_profile, otherwise this may prevent java -version from returning the desired result.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With