Switch JDK
Sep 11 · 1min
Check the java version installed on your computer
bash
/usr/libexec/java_home -V
Check the current java version
bash
java -version
Set version
bash
open ~/.bash_profile
# SWITCH TO JAVA VERSION 8
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
Update configuration
bash
source ~/.bash_profile
> cd ..