DEV Community

Minwook Je
Minwook Je

Posted on

M3 Java / Android

brew install jenv
Enter fullscreen mode Exit fullscreen mode
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(jenv init -)"' >> ~/.zshrc
source ~/.zshrc

# check
$ jenv --version
jenv 0.5.9
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode
  • rosetta setting
sudo softwareupdate --install-rosetta

brew install --cask temurin@8 # retry
🍺  temurin@8 was successfully installed!
Enter fullscreen mode Exit fullscreen mode
  • Check dir
/Library/Java/JavaVirtualMachines ❯ ls                                                        
temurin-8.jdk
Enter fullscreen mode Exit fullscreen mode
  • 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
Enter fullscreen mode Exit fullscreen mode

Top comments (0)