Created
September 20, 2018 18:34
-
-
Save litvil/82bf7ea2662a73d5aa822885b0a2a3cc to your computer and use it in GitHub Desktop.
jenv macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/libexec/java_home -verbose | |
brew install jenv | |
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(jenv init -)"' >> ~/.zshrc | |
(restart terminal) | |
jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home | |
jenv add /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home | |
jenv versions | |
jenv global oracle64-1.6.0.39 | |
jenv local oracle64-1.6.0.39 | |
jenv shell oracle64-1.6.0.39 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment