Skip to content

Instantly share code, notes, and snippets.

@jasoet
Created November 30, 2013 04:42
Show Gist options
  • Select an option

  • Save jasoet/7715498 to your computer and use it in GitHub Desktop.

Select an option

Save jasoet/7715498 to your computer and use it in GitHub Desktop.
Set JAVA_HOME on MAC
$ 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