How can you change the default version of Java on a mac?
You can add it to your .bash_profile to have the version set by default.
//Open bash profile open ~/.bash_profile export JAVA_HOME=`/usr/libexec/java_home -v 1.8` // run bash profile source ~/.bash_profile