

Follow the screen instructions to install JDK/JRE. Double-click the downloaded Disk Image (DMG) file.Under "Java Platform, Standard Edition" ⇒ "Java SE 11.0.Then, proceed to "Step 3: Write a Hello-world Java program". If message "To open javac, you need a Java runtime" appears, select "Install" and follow the instructions to install JDK.If message "command not found" appears, JDK is NOT installed.If the JDK version is prior to 1.8, proceed to Step 2 to install the latest JDK otherwise, proceed to "Step 3: Write a Hello-world Java If a JDK version number is returned (e.g., JDK x.x.x ), then JDK has already been installed.


To check if JDK has been installed, open a "Terminal" (Search "Terminal" or Finder ⇒ Go ⇒ Utilities ⇒ Terminal) and issue this command: javas - version Step 1: Check if JDK has been Pre-Installed
