How to Install Oracle Java JDK 17 on Linux

Java 17 LTS is the latest long-term support release for the Java SE platform. This newest release includes JDK 17 that provides a development environment for building applications using the Java programing language and testing and running the Java programs.

READ:Java SE 17 Release Notes

Here, we will see how to install Java JDK 17 on Linux (CentOS, Ubuntu, Debian, and Fedora).

Install Oracle Java JDK 17 on Linux

Install Oracle Java JDK 17 on CentOS / RHEL / Rocky Linux & Fedora

First, switch to the root user if required.

sudo su -

Then, download Oracle Java JDK 17 using the wget command in the terminal.

wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm

And then, install Oracle Java JDK 17 using the rpm command.

rpm -ivh jdk-17_linux-x64_bin.rpm

Install Oracle Java JDK 17 on Ubuntu / Debian

First, download Oracle Java JDK 17 using the wget command in the terminal.

wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.deb

Then, install Oracle Java JDK 17 using the dpkg command.

sudo dpkg -i jdk-17_linux-x64_bin.deb

Verify Java JDK Installation

After the installation of Java, use the below command to verify the version.

java -version

Output:

java version "17.0.1" 2021-10-19 LTS Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39) Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

Sumber: disini

Wagiman Wiryosukiro

Petani Sistem Informasi, tukang las plugin & themes Wordpress. Co-Founder SistemInformasi.biz. Saat ini aktif sebagai Developer & kontributor di OpenMandriva Linux.

You may also like...

%d bloggers like this: