Set Java Home to a specific version on Mac
Installing Oracle’s version of Java on your machine does (for most machines I’ve encountered) add a Java Home system variable. Rarely however it doesn’t work on some machines. Such folks are recommended to add the path themselves. On a Mac, you can do this by using the following export JAVA_HOME=$(/usr/libexec/java_home)...