Mac: Set JAVA_HOME 01 December 2018 Robert Amiscaray (0) Mac: Set JAVA_HOME Open Terminal $ nano ~/.bash_profile Add the following line: export JAVA_HOME=$(/usr/libexec/java_home) Close terminal and reopen