brew install jenv
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(jenv init -)"' >> ~/.zshrc
source ~/.zshrc
# check
$ jenv --version
jenv 0.5.9
temurin jdk 설치
OpenJDK는 JDK 설치하면 JRE도 함께 설치된다.
- I need jdk 1.8 ver
brew install --cask temurin@8
installer: This package requires Rosetta 2 to be installed.
Please install Rosetta 2 and then try again.
`sudo softwareupdate --install-rosetta
- rosetta setting
sudo softwareupdate --install-rosetta
brew install --cask temurin@8 # retry
🍺 temurin@8 was successfully installed!
- Check dir
/Library/Java/JavaVirtualMachines ❯ ls
temurin-8.jdk
- Register jenv
~ ❯ jenv add /Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home 15:50:40
temurin64-1.8.0.472 added
1.8.0.472 added
1.8 added
$ jenv global temurin64-1.8.0.472
Top comments (0)