Skip to content

Instantly share code, notes, and snippets.

@mookjp mookjp/mac-java_home.md
Last active Aug 29, 2015

Embed
What would you like to do?
MacでJAVA_HOMEの切り替え

$ export JAVA_HOME=`/usr/libexec/java_home -v <version>` でJAVA_HOMEの切り替えを行うことができる。

export JAVA_HOME=`/usr/libexec/java_home -v 1.6`
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.