久しぶりにJavaを触った。
many many jdks ...so how to mange so many jdks
- show jdks version on your mac pc
/usr/libexec/java_home -V - env is a good idea.
- python->pyenv
- node->nodenv
- ruby->rbenv
- golang->gvm
- java->jenv
- install jenv
brew install jenv
export JENV_ROOT="$HOME/.jenv"
echo 'eval "$(jenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
jenv doctor - add jdk path to jenv
jenv add /Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home - use some version
jenv local 11