Patches for Java 7 are thus not available to Lion and Mountain Lion - OS X 10.7 and OS X 10.8, respectively - via Apple's Software Update service, but must be retrieved from Oracle. $ java -version java version '10.0.2.1-ea' Java(TM) SE Runtime Environment (build 10.0.2.1-ea+13) Java HotSpot(TM) 64-Bit Server VM (build 23.2-b04, mixed mode) Note: If you have not yet installed Apple's Java OS X 2012-006 update, then you are still using a version of Apple Java 6 that includes the plug-in and the Java Preferences application. JDK 14 Early-Access builds for macOS 10.15 Catalina. The JDK 14 Early-Access program for macOS 10.15 has concluded. JDK 14, which complies with Apple requirements for.
With Oracle’s Java 8, there’s been some confusion as to whether Java 8 runs on Mac OS X 10.7.5. This issue was lent additional urgency in the wake of Oracle’s announcement that they will begin auto-updating Java 7 users to Java 8 starting in January 2015.
The root of the confusion lies in the fact that Oracle has listed two different sets of system requirements on their website for Macs running Java 8 on Mac OS X.
The first set is available via Oracle’s general Java system requirements page. This page states that Java 8 requires the following:
- Intel-based Mac running Mac OS X 10.8.3+, 10.9+
- Administrator privileges for installation
- 64-bit browser
The second set is available via the Java download page for Mac OS X. The system requirements linked from the download page state that Oracle’s Java requires the following:
- Intel-based Mac running Mac OS X 10.7.3 (Lion) or later.
- Administrator privileges for installation
- 64-bit browser
In short, the question of Java 8 support for 10.7.x depended on which system requirement page was correct. For more details, see below the jump.
Based on my testing, it appears that the current version of Java 8 (Java 8 Update 25) installs on Mac OS X 10.7.5 without issues.
Following installation, I tested on a 10.7.5 Mac against the following sites:
My work’s Juniper VPN (which uses a signed Java applet)
Oracle’s Java Test page: https://www.java.com/en/download/help/testvm.xml
Java Tester’s Java Version page: http://javatester.org/version.html
In all three cases, the Java applets on those sites launched and worked without issue using Java 8 Update 25 (though the javatester.org applet needed to be whitelisted.)
This topic includes the following sections:
Oracle Java Macos Install Location
System Requirements for Installing the JDK on macOS
The following are the system requirements for installing the JDK on macOS:
- Any Intel-based computer running macOS.
- Administrator privileges.You cannot install Java for a single user. Installing the JDK on macOS is performed on a systemwide basis for all users. Administrator privileges are required to install the JDK on macOS.
Determining the Default JDK Version on macOS
When starting a Java application through the command line, the system uses the default JDK.
There can be multiple JDKs installed on the macOS system.
You can determine which version of the JDK is the default by entering
java -version
in a Terminal window. If the installed version is 14 Interim 0, Update 0, and Patch 0, then you see a string that includes the text 14
. For example: To run a different version of Java, either specify the full path, or use the
java_home
tool. For example: $ /usr/libexec/java_home -v 14 --exec javac -version
Installing the JDK on macOS
- Download the JDK
.dmg
file,jdk-14.
interim.update.patch_osx-x64_bin.dmg
.Before the file can be downloaded, you must accept the license agreement. - From either the browser Downloads window or from the file browser, double-click the
.dmg
file to start it.A Finder window appears that contains an icon of an open box and the name of the.pkg
file. - Double-click the
JDK 14.pkg
icon to start the installation application.The installation application displays the Introduction window. - Click Continue.
- Click Install. A window appears that displays the message: Installer is trying to install new software. Enter your password to allow this.
- Enter the Administrator user name and password and click Install Software.The software is installed and a confirmation window is displayed.
After the software is installed, you can delete the
.dmg
file if you want to save disk space. Uninstalling the JDK on macOS
You must have Administrator privileges.Note:
Do not attempt to uninstall Java by removing the Java tools from
/usr/bin
. This directory is part of the system software and any changes will be reset by Apple the next time that you perform an update of the OS. - Go to
/Library/Java/JavaVirtualMachines
. - Remove the directory whose name matches the following format by executing the
rm
command as a root user or by using thesudo
tool:/Library/Java/JavaVirtualMachines/jdk-14.interim.update.patch.jdk
For example, to uninstall 14 Interim 0 Update 0 Patch 0:$ rm -rf jdk-14.jdk
Installation FAQ on macOS Platform
This topic provides answers for the following frequently asked questions about installing JDK on macOS computers.
Oracle Mac Os
1. How do I find out which version of Java is the system default?
When you run a Java application from the command line, it uses the default JDK. If you do not develop Java applications, then you do not need to worry about this. See Determining the Default JDK Version on macOS.
2. How do I uninstall Java?
See Uninstalling the JDK on macOS.
3. After installing Java for macOS 2012-006, can I continue to use Apple's Java 6 alongside the macOS JDK for Java 14?
If you want to continue to develop with Java 6 using command-line, then you can modify the startup script for your favorite command environment. For bash, use this:
$ export JAVA_HOME=`/usr/libexec/java_home -v 14`
Some applications use
/usr/bin/java
to call Java. After installing Java for macOS 2012-006, /usr/bin/java
will find the newest JDK installed, and will use that for all of the Java-related command-line tools in /usr/bin
. You may need to modify those applications to find Java 6, or contact the developer for a newer version of the application. 4. What happened to the Java Preferences app in Application Utilities?
The Java Preferences app was part of the Apple Java installation and is not used by Oracle Java. Therefore, macOS releases from Apple that do not include Apple Java will not include Java Preferences.