How to Install Java on macOS Sierra
Some Mac users may need to install Java into macOS Sierra or MacOS High Sierra. Typically the need for Java is for specific app usage, particular app compatibility, or for developers, and it’s worth mentioning that most Mac users won’t need to bother installing Java at all. For those that do need Java however, you will find it’s easy to get onto the latest versions of MacOS.
As you may know by now, MacOS no longer ships with Java preinstalled, so you’ll need to download and install java on your own if you need it in MacOS 10.13 or 10.12. This is to insure that the most recent version of Java is installed on the Mac if it’s needed, aiming to lessen potential security issues that may come up with older versions of the Java software (though older versions of Java can be installed if need be for a specific reason).
Note: if you do not specifically need Java, you should not install it onto a Mac.
How to Install Java in macOS High Sierra & Sierra
The best approach to install Java on the Mac is to get the latest version of Java JRE directly from Oracle. This is fairly straight forward and you can either initiate the process from the terminal application in macOS or by going directly to the Java download page on Oracles website.
- Open the Terminal app and type the following:
- Click on the “More Info” button to jump to the Java downloads page in a web browser
This will allow you to download and install the newest most recent version of Java available for the Mac, which is currently JRE8.
Additionally, you can choose to go directly to the Java downloads page on Oracle.com where you can find the latest release of Java JRE and as well as the JDK if you need one, the other, or both. If you need an older version of Java for whatever reason, some Mac OS releases support JRE 6 as described here.
How to Install Java JRE 6 on macOS High Sierra
Some users may need to run JRE6 in modern MacOS releases, in which case you can download an updated installer appropriate for macOS High Sierra, Sierra, El Cap, and Mavericks too.
The download notes from Apple for that releases are as follows:
Java for macOS 2017-001 installs the legacy Java 6 runtime for macOS 10.13 High Sierra, macOS 10.12 Sierra, macOS 10.11 El Capitan, macOS 10.10 Yosemite, macOS 10.9 Mavericks, macOS 10.8 Mountain Lion, and macOS 10.7 Lion.
This package is exclusively intended for support of legacy software and installs the same deprecated version of Java 6 included in the 2015-001, 2014-001, and 2013-005 releases.
Quit any Java applications before installing this update.
Download and run that Java installer to install Java Runtime Environment 6 in modern Mac OS versions if needed.
Users might need to turn off SIP protection on the Mac before being allowed to complete the installation of Java.
Know of another approach to installing Java in macOS 10.13 or macOS 10.12? Have any opinions or thoughts on the matter? Let us know in the comments!