LoginSignup
0

More than 5 years have passed since last update.

Macで複数バージョンのJavaを切り替える

Last updated at Posted at 2018-03-15

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


.bashrcに以下を仕込む。

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

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

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0