Install OpenJDK 8 on Debian 10 (Buster)

The Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc) and other tools needed in Java development.

1. Add AdoptOpenJDK Repo

We need to add adopt OpenJDK repo in order to install OpenJDK 8 on Debian.

sudo apt install -y wget gnupg software-properties-common

wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -

sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/

2. Install Java 8

Here we will use apt to install Java 8 on Debian Buster

sudo apt update -y

sudo apt install adoptopenjdk-8-hotspot -y

Referencehttps://installvirtual.com/install-java-8-on-debian-10-buster/

0 Komentar