본문 바로가기

Java기초

[Java 기초] Mac M1 Eclipse install

M1 맥북 Eclipse 다운로드

https://www.eclipse.org/downloads/packages/release/2020-03/m1

 

2020-03 M1 | Eclipse Packages

446 MB 1 DOWNLOADS The Modeling package provides tools and runtimes for building model-based applications. You can use it to graphically design domain models, to leverage those models at design time by creating and editing dynamic instances, to collaborate

www.eclipse.org

해당 링크에서 Eclipse를 다운 받았습니다.


JDK 다운로드

www.oracle.com/kr/java/technologies/javase-downloads.html

해당 링크에서 JDK를 다운로드를 진행합니다.


M1 환경변수 설정

m1맥의 환경 변수를 설정합니다.

~/.bash_profile , ~/.zshrc 두가지에 jdk환경 변수를 잡아줍니다.

 

1. 먼저 설치 경로를 확인

저의 경우에는 Library/Java/JavaVirtualmachines/ 의 경로에 JDK가 존재

 

2. 터미널에서 vi ~/.bash_profile 를 입력한 후 아래처럼 경로를 작성.

 * (jdk-16.0.1.jdk)는 사용자마다 다르니 본인의 버전에 맞는 폴더명을 입력 

3. vi ~/.zshrc 입력후 위와 같은 경로를 다시한번 입력

 

4. 경로 설정이 끝났다면 source ~/.bash_profile , source ~/.zshrc를 입력하여 환경변수를 적용시킨다