Skip to content

Instantly share code, notes, and snippets.

@fsvehla
Created September 2, 2014 15:28
Show Gist options
  • Save fsvehla/2a3352f18d65204a057e to your computer and use it in GitHub Desktop.
Save fsvehla/2a3352f18d65204a057e to your computer and use it in GitHub Desktop.
function jdk7 () {
export JVM_VERSION='1.7.0_51'
# Java
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk${JVM_VERSION}.jdk/Contents/Home"
export PATH="${JAVA_HOME}/bin:${PATH}"
}
function jdk8 () {
export JVM_VERSION='1.8.0_20'
# Java
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk${JVM_VERSION}.jdk/Contents/Home"
export PATH="${JAVA_HOME}/bin:${PATH}"
}
jdk8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment