Notice
Recent Posts
Recent Comments
Link
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

Wook No.1

JDK 설치 / 변경 본문

Java

JDK 설치 / 변경

Wook No.1 2022. 4. 4. 18:11

JDK 설치

$ brew install --cask adoptopenjdk11

 

설치된 JDK 목록 확인

$ /usr/libexec/java_home -V  
Matching Java Virtual Machines (3):
    11.0.11 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 11" /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
    1.8.281.09 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
    1.8.0_281 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home

 

JDK 버전 변경

$ export JAVA_HOME=$(/usr/libexec/java_home -v 11)

 

'Java' 카테고리의 다른 글

CopyOnWriteArrayList  (0) 2021.08.24
Jar Decompile  (0) 2021.05.04
Comments