Skip to content

Instantly share code, notes, and snippets.

@Epsiloni
Created May 3, 2015 07:03
Show Gist options
  • Save Epsiloni/b9154cb99806b92379a4 to your computer and use it in GitHub Desktop.
Save Epsiloni/b9154cb99806b92379a4 to your computer and use it in GitHub Desktop.
Setting the JAVA_HOME
export JAVA_HOME=`/usr/libexec/java_home -v 1.6`
or
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
or
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