Skip to content

Instantly share code, notes, and snippets.

@schwarzmx
Created April 7, 2014 14:32
Show Gist options
  • Save schwarzmx/10021410 to your computer and use it in GitHub Desktop.
Save schwarzmx/10021410 to your computer and use it in GitHub Desktop.
multiple JDKs - Mac OS X
alias usejava6='export JAVA_HOME=$(/usr/libexec/java_home -v 1.6) ; PATH=$JAVA_HOME/bin:$PATH'
alias usejava7='export JAVA_HOME=$(/usr/libexec/java_home -v 1.7) ; PATH=$JAVA_HOME/bin:$PATH'
alias usejava8='export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) ; PATH=$JAVA_HOME/bin:$PATH'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment