すぐ忘れるので自分用の備忘録。


.bashrcに以下を仕込む。

~/.bashrc
export JAVA_HOME=`/usr/libexec/java_home -v "1.8"`
export PATH=$JAVA_HOME:$PATH

Java9にするには
/usr/libexec/java_home -v "9"

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.