Oracle Java (Version 7 and later versions) requires an. Java 7 and later versions can run on your Mac.
does not provide a download for these systems. If you have problems with Java 6, contact Apple Technical Support.
If you don't have an account you can use the links on the top of this page to learn more about it and register for one for free.įor current Java releases, please consult the Oracle Software Download page.įor more information on the transition of products from the legacy Sun download system to the Oracle Technology Network, visit the SDLC Decommission page announcement. Java 7 and later versions are not supported by these older versions of Mac OS X.
Only developers and Enterprise administrators should download these releases.ĭownloading these releases requires an account. They are not updated with the latest security patches and are not recommended for use in production.įor production use Oracle recommends downloading the latest JDK and JRE versions and allowing auto-update. WARNING: These older versions of the JRE and JDK are provided to help developers debug issues in older systems. The JDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java TM platform. The JDK is a development environment for building applications, applets, and components using the Java programming language. Java HotSpot(TM) 64-Bit Server VM (build 20.Thank you for downloading this release of the Java TM Platform, Standard Edition Development Kit (JDK TM). The Java auto-update mechanism is designed to keep Java users up-to-date with the latest security fixes.
Oracle started auto-updating Windows 32-bit and OS X, Java Runtime Environment (JRE) users from JRE 7 to JRE 8 in January 20, 2015. So I removed the symbolic link CurrentJDK sudo rm CurrentJDKĪnd re-created the symbolic link pointing to JDK6, which is still on my Mac sudo ln -s /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/ CurrentJDKĪnd that did the trick for me java -version Java 7 Auto-Update to Java 8 General Information and FAQ About the Java 7 Auto-Update to Java 8. Lrwxr-xr-x 1 root wheel 59 Nov 20 21:40 CurrentJDK -> /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/ Lrwxr-xr-x 1 root wheel 1 Oct 25 17:01 Current -> A Lrwxr-xr-x 1 root wheel 10 Oct 25 17:01 1.6 -> CurrentJDK Lrwxr-xr-x 1 root wheel 10 Oct 25 17:01 1.5 -> CurrentJDK I noticed that in my /System/Library/Frameworks/amework/Versions/, it showed the following: lrwxr-xr-x 1 root wheel 10 Oct 25 17:01 1.4 -> CurrentJDK I needed to revert back to JDK6, and I did it differently. After having installed JDK7, some of my applications no longer worked. Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode) Java(TM) SE Runtime Environment (build 1.7.0_09-b05) $ export JAVA_HOME=`/usr/libexec/java_home -v '1.7*'` Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode) $ export JAVA_HOME=`/usr/libexec/java_home -v '1.6*'`
bash_profile file in your home directory. You can use this value to set JAVA_HOME: export JAVA_HOME=`/usr/libexec/java_home -v '1.6*'`Įither as a one-off for a particular Terminal session, or permanently for all future terminal sessions by adding the above line to the. Will return a JAVA_HOME value for the best available 1.6 JDK on your system. This will be Java 7, but you can apply constraints using the -v flag, for example /usr/libexec/java_home -v '1.6*'
Will print out the appropriate JAVA_HOME value for the most up to date JDK on your system. The tool /usr/libexec/java_home is your friend here. command line tools are sensitive to the value of the JAVA_HOME environment variable and will use 1.6 if this variable points to a 1.6 JDK.