1. Home
  2. Docs
  3. Linux
  4. Debian
  5. Cara Install OPENJDK 8 di Debian

Cara Install OPENJDK 8 di Debian

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

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *