Skip to content

emka.web.id

Menu
  • Home
  • Indeks Artikel
  • Tutorial
  • Tentang Kami
Menu

How to Install Oracle Java JDK 17 on Linux

Posted on November 21, 2021 by Syauqi Wiryahasana

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
Seedbacklink

Recent Posts

TENTANG EMKA.WEB>ID

EMKA.WEB.ID adalah blog seputar teknologi informasi, edukasi dan ke-NU-an yang hadir sejak tahun 2011. Kontak: kontak@emka.web.id.

©2024 emka.web.id Proudly powered by wpStatically