$ sudo -s
$ cat <<'EOF' > /etc/yum.repos.d/adoptopenjdk.repo
[AdoptOpenJDK]
name=AdoptOpenJDK
baseurl=http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/centos/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
EOF
$ exit
$ sudo yum install -y adoptopenjdk-8-openj9
$ vi ~/.bash_profile
## 추가
export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac)))))
'Language > Java' 카테고리의 다른 글
[JAVA] JDBC 메타정보 추출하기 (0) | 2020.08.19 |
---|---|
[Java] invalid source release 에러 해결 (0) | 2020.02.12 |