how to update java_home Posted on 2020-03-12 1echo export "JAVA_HOME=\$(/usr/libexec/java_home -v 1.7)" >> ~/.bash_profile