How to Install Java on MacOS

To install Java on MacOS you need to go to the official Oracle download page and click on the major version of Java.

Press “JDK Download” link and scroll down and download macOS Installer.

When downloading is finished launch dmg file and double-click on the icon.

Java installer welcome page will be opened.

Press “Continue”.

Press “Install”.

So Java is successfully installed and ready to use.

To check Java version you need:

  1. Open Launchpad
  2. Find and open Terminal
  3. Type java -version

Output:

java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

P.S. check my guide how to add $JAVA_HOME environment variable on Mac OS.

Leave a Comment