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.

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.

  1. Open the Terminal app and type the following:
  2. java

  3. Click on the “More Info” button to jump to the Java downloads page in a web browser

Start installing Java on MacOS

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.

Users might need to turn off SIP protection on the Mac before being allowed to complete the installation of Java.

You can also uninstall Java from a Mac if need be after the fact, or you can just disable Java too.

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!

Source: OSX Daily