Skip to content

Instantly share code, notes, and snippets.

@rodrigomaia
Created September 23, 2013 20:35
Show Gist options
  • Save rodrigomaia/6676551 to your computer and use it in GitHub Desktop.
Save rodrigomaia/6676551 to your computer and use it in GitHub Desktop.
JAVA_HOME on MacOS
http://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/
$ vim .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
$ source .bash_profile
$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment