본문 바로가기

Backend/Java

OpenJDK 설치 (Windows / Mac)

http://jdk.java.net/archive/

 

Archived OpenJDK GA Releases

Archived OpenJDK General-Availability Releases This page is an archive of previously released builds of the JDK licensed under the GNU General Public License, version 2, with Classpath Exception. WARNING: These older versions of the JDK are provided to hel

jdk.java.net

 

여기서도 받을 수 있어요.

https://adoptopenjdk.net

 

AdoptOpenJDK

AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. Supported platforms include Linux, macOS, Windows, ARM, Solaris, and AIX.

adoptopenjdk.net


for Windows

...더보기

 

이 글에서는 Windows 10에서 진행했어요.

1. 파일 다운로드 및 압축 해제

C:\Library\Java\jdk-11.0.2 경로에 설치할게요.

 

2. 환경 변수 추가

내 PC 우클릭 - 속성 - 고급 시스템 설정 - 환경 변수로 이동할게요.

 

3. JAVA_HOME, Path 추가

jdk 설치 경로를 JAVA_HOME의 값으로 입력해주세요.

Path에 %JAVA_HOME%\bin을 추가할게요.

JAVA_HOME 추가

 

4. 완료

 

for Mac

...더보기

1. 파일 다운로드 및 터미널 실행

경로가 다르다면 다른 곳으로 이동하면 되요.

cd ~/Downloads

 

2. 압축 해제

tar -zxvf openjdk-11.0.2_osx-x64_bin.tar.gz

 

3. jdk 폴더 이동, 완료

sudo mv jdk-11.0.2.jdk /Library/Java/JavaVirtualMachines/

ls Library/Java/JavaVirtualMachines

java -version