반응형
얼마전에 맥북을 샀다. 그러면서 새롭게 개발환경을 설정했다. 이하는 OpenJdk를 설치하는 내용이다.
명령어 순서는 다음과 같다.
1
2
3
4
5
6
7
|
1. brew tap AdoptOpenJdk/openjdk
2. brew install --cask adoptopenjdk8
3. /usr/libexec/java_home -v 1.8
4. java -version
|
cs |
1. brew tap AdoptOpenJdk/openjdk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
kimfish@KimFish-MacBookPro ~ % brew tap AdoptOpenJdk/openjdk
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 4 formulae.
==> Tapping adoptopenjdk/openjdk
Cloning into '/opt/homebrew/Library/Taps/adoptopenjdk/homebrew-openjdk'...
remote: Enumerating objects: 1996, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 1996 (delta 44), reused 49 (delta 38), pack-reused 1936
Receiving objects: 100% (1996/1996), 372.27 KiB | 7.16 MiB/s, done.
Resolving deltas: 100% (1424/1424), done.
Tapped 47 casks (69 files, 521.8KB).
|
2. brew install --cask adoptopenjdk8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
kimfish@KimFish-MacBookPro ~ % brew install --cask adoptopenjdk8
==> Downloading https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/downl
==> Downloading from https://objects.githubusercontent.com/github-production-rel
######################################################################## 100.0%
==> Installing Cask adoptopenjdk8
==> Running installer for adoptopenjdk8; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Package name is AdoptOpenJDK
installer: Installing at base path /
installer: The install was successful.
package-id: net.adoptopenjdk.8.jdk
version: 1.8.0_292-b10
volume: /
location:
install-time: 1649472633
🍺 adoptopenjdk8 was successfully installed!
|
cs |
3. /usr/libexec/java_home -v 1.8
1
2
|
kimfish@KimFish-MacBookPro ~ % /usr/libexec/java_home -v 1.8
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
|
cs |
4. java -version
1
2
3
4
|
kimfish@KimFish-MacBookPro ~ % java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
|
cs |
정상적으로 설치가 된 모습이다. 설치하고나니 AdoptOpenJdk가 아닌 RedhatOpenJdk를 설치할걸 그랬나 싶긴 하지만, 일단 사용 해 보고 문제가 발생하면 나중에 다시 설치하지뭐
반응형
'어장 Develop' 카테고리의 다른 글
[Python] unknown error: session deleted because of page crashfrom tab crashed (0) | 2022.04.12 |
---|---|
[Mac] chromedriver 설치부터 (1) | 2022.04.10 |
[http1.1] Expect: 100-continue (0) | 2021.03.18 |
[tomcat] p12 ssl 적용 (0) | 2020.06.08 |
[Linux] Centos Alias 설정 (0) | 2020.04.11 |