자바 설치
1. 자바 개발도구 설치 및 환경변수 설정
2. Homebrew 설치
# ==============================================================================
# 1. Homebrew 설치
# ==============================================================================
# 터미널에 아래 명령어 입력 후 엔터
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 아래 문구가 뜨면 맥 운영체제에 로그인할 때 사용했던 비밀번호 입력 후 엔터
==> Checking for `sudo` access (which may request your password)...
Password:
# 아래 문구가 나오면 다시 엔터키 입력
Press RETURN/ENTER to continue or any other key to abort:
# ==============================================================================
# 2. Homebrew 환경변수 설정
# ==============================================================================
# 설치가 완료되면 아래와 같은 안내 메세지가 출력됨
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/<USER_ID>/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# 터미널에 아래 명령어 입력 후 엔터(USER_ID 부분이 본인 ID인지 확인)
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/<USER_ID>/.zprofile
# 터미널에 아래 명령어 입력 후 엔터
eval "$(/opt/homebrew/bin/brew shellenv)"
# ==============================================================================
# 3. 제대로 설정되었는지 확인
# ==============================================================================
# 터미널에 아래 명령어 입력 후 엔터
which brew
# 제대로 환경변수가 설정되었다면 아래 문구 출력
/opt/homebrew/bin/brew3. JDK 설치
5. java API 문서 다운로드
Last updated