Friday, 31 December 2021

How to Install Oracle Java 17 LTS on CentOS 8



Oracle Java 17 LTS is the latest version of Oracle Java which is released for long-term support for the Java SE platform. JDK 17 binaries are not available in CentOS 8 Base and App Stream.It can be installed by downloading RPM packages from Oracle official sites.
 
This article describes How to Install Oracle Java 17 LTS on CentOS 8
 
[root@linuxcnf ~]# cat /etc/redhat-release
CentOS Linux release 8.5.2111
[root@linuxcnf ~]#
 
Step 1. Java Package Installation: Run the following command to download and install Oracle Java 17 LTS:
 
[root@linuxcnf ~]# dnf install -y https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm
……………………..
Installing:
 jdk-17        x86_64        2000:17.0.1-ga           @commandline        155 M 
……………………..
Installed:
  jdk-17-2000:17.0.1-ga.x86_64
 
Complete!
[root@linuxcnf ~]#
 
Step 2. Validate Installation: Run the following command to validate/verify Oracle Java 17 LTS installation:
 
[root@linuxcnf ~]# java -version
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)
[root@linuxcnf ~]#
 
Done!!! Oracle Java 17 LTS installation is done on CentOS 8.

No comments:

Post a Comment