Install Java
JRE vs. JDK vs. SE
JRE: Java Runtime Environment
JDK: Java Development Kit
SE: Java Standard Edition
We will download and install JDK in this section. As a quick refresher, which Java package do I need?
Software Developers: Generally tend to use JDK (java development kit). It includes java runtime and libraries for troubleshooting and monitoring applications..
Administrators: SE stands for server JRE, generally used by server administrators
JRE: Java runtime environment is the minimal version used by end users to run java applications
JDK on Mac
Accept license agreement, download the dmg and install.
After installing and making modifications to ~/.profile, this is the output on my machine. Ensure that java executable is available on path and further the shell variables $JAVA_HOME,$JDK_HOME AND $PATH are updated as below