카테고리 없음

[mac] brew 로 temurin jdk 설치하기

냐옴 2023. 5. 10. 22:08

case 설치, repository 추가

# cask 설치하기
$ brew install cask

# repository 추가
$ brew tap homebrew/cask-versions

 

temurin jdk 설치/삭제

# temurin jdk 최신버전 설치
$ brew install --cask temurin

# temurin jdk 8 설치
$ brew install --cask temurin8

# temurin jdk 11 설치
$ brew install --cask temurin11

# temurin jdk 17 설치
$ brew install --cask temurin17

# temurin jdk 설치 목록 조회
$ brew list --cask

# temurin 삭제
$ brew uninstall temurin
$ brew uninstall --cask temurin

 

설치된 모든 jdk 확인

$ /usr/libexec/java_home -V

 

jdk 설치 경로

cd /Library/Java/JavaVirtualMachines

cd ~/Library/Java/JavaVirtualMachines