Install Java on Mac OS Sierra
If you don’t have Java
already install then first step is to install Java. Go to the Java download link
and install latest Java SDK version.
Next select the JDK file that
is compatible with your operating system. Since I am using mac OS, I will
download macOSX dmg file.
Follow the steps and complete the installation.