Last active
April 22, 2022 19:37
-
-
Save PrettySolution/f0ae53390d0267cc5ce54c4b4a72aa2e to your computer and use it in GitHub Desktop.
install and manage java versions
This file contains 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
# on Mac | |
https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/macos-install.html | |
brew install jenv | |
/usr/libexec/java_home -V | |
jenv add /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home | |
jenv add /Users/air/Library/Java/JavaVirtualMachines/azul-1.8.0_322/Contents/Home | |
jenv global 11 | |
# on Ubuntu | |
sudo update-alternatives --config java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment