Install package pendukung yang diperlukan
sudo apt install -y wget apt-transport-https gpg
Download Eclipse Adoptium GPG key:
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
Tambahkan Eclipse Adoptium apt repository
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
Install versi Java yang dibutuhkan:
sudo apt update
sudo apt install temurin-8-jdk
Official Repo : https://adoptium.net