☕2.1. Install Java JDK
Save and close the file.
Open a Terminal and run the source command to apply the changes:
$ source ~/.bash_profile
Now we can check the value of the JAVA_HOME variable:
$ echo $JAVA_HOME
The result should be the path to the JDK installation:
$ /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/HomeLast updated