Skip to content

Instantly share code, notes, and snippets.

@panser
Last active May 18, 2020 18:26
Show Gist options
  • Save panser/00cfbd5838f01a347e93309f88a3b0e8 to your computer and use it in GitHub Desktop.
Save panser/00cfbd5838f01a347e93309f88a3b0e8 to your computer and use it in GitHub Desktop.
brew update
brew tap homebrew/cask-versions
brew cask install java
brew cask install java11
brew cask install java8
brew install jenv
vim ~/.zshrc
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
/usr/libexec/java_home -V 2>&1 1>/dev/null | awk -F $'\t' '{ print $3 }' | xargs -n 1 jenv add
jenv versions
jenv global 11.0
jenv enable-plugin export
jenv doctor
echo ${JAVA_HOME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment