목차

Java/JDK on Ubuntu/Debian

# java 목록 보기
sudo update-alternatives --list java
 
# java, javac 설정
sudo update-alternatives --config java
sudo update-alternatives --config javac
 
# 명령행으로 직접 설정 - openjdk-11
sudo update-alternatives --set java  /usr/lib/jvm/java-11-openjdk-amd64/bin/java
sudo update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac

Adoptium

OpenJDK PPA

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update

Oracle JDK PPA

echo oracle-java15-installer shared/accepted-oracle-license-v1-2 select true | sudo /usr/bin/debconf-set-selections
 
# 위에게 안되면,
echo oracle-java15-installer shared/accepted-oracle-licence-v1-2 boolean true | sudo /usr/bin/debconf-set-selections

AWS Corretto

Zulu

구버전(1.4 이하 설치)

한글 글꼴 깨짐(Linux Java Hangul Font)