설치 방법
설치
brew install openjdk@17
path 설정
참고 : zshrc 아니고 bash_profile 이신 분들은 ~/.zshrc 부분을 ~/.bash_profile 로 대체하시면 됩니다.
brew info openjdk@17 # 설치 내용 확인
echo 'export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH"' >> ~/.zshrc
export CPPFLAGS="-I/opt/homebrew/opt/openjdk@17/include" # 이건 혹시나 컴파일러를 위해서
source ~/.zshrc
java -v
path 설정 전에는 java home 경로가 14 였다가 source 명령어로 적용 이후에 확인하면 17로 잘 잡힘을 확인할 수 있다.
References
https://stackoverflow.com/questions/69875335/macos-how-to-install-java-17
https://adjh54.tistory.com/216
728x90
반응형
'공부 > 튜토리얼' 카테고리의 다른 글
Kubeflow 설치 (0) | 2025.02.01 |
---|---|
[토크ON세미나] 딥러닝 기반 음성인식 기초 3,4,5강 (0) | 2023.05.09 |
[토크ON세미나] 딥러닝 기반 음성인식 기초 1,2강 - 딥러닝 기초 I, II | T아카데미 (0) | 2023.05.03 |
Learn Git Branching (0) | 2023.05.02 |
Dot products and duality | Chapter 9, Essence of linear algebra (0) | 2022.11.19 |