Sunday 11 July 2021

How to install Java9/jdk1.9 on CentOS 8 – RPM File



Java 9/jdk1.9 packages are not available in CentOS8 base repositories to download and install. The version file can be downloaded and installed from official site.
This article describes How to install Java9/jdk1.9 on CentOS8 – RPM File
 
Step 1. Download Package: Download java package “jdk-9.0.4_linux-x64_bin.rpm” from Official Site and change the directory where the package is saved.
  
[root@linuxcnf ~]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)
[root@linuxcnf ~]#
  
[root@linuxcnf ~]# ls -ltrh jdk-9.0.4_linux-x64_bin.rpm
-rw-r--r--. 1 root root 306M Jul 11 16:08 jdk-9.0.4_linux-x64_bin.rpm
[root@linuxcnf ~]#
 
Step 2. Package Installation: Run the following command to install Java 9:
 
[root@linuxcnf ~]# rpm -ivh jdk-9.0.4_linux-x64_bin.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:jdk-9.0.4-2000:9.0.4-ga          ################################# [100%]
Unpacking JAR files...
        plugin.jar...
…………………………
[root@linuxcnf ~]#
 
Step 3. Validate Installation: Run the following command to validate the installation
 
[root@linuxcnf ~]# java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
[root@linuxcnf ~]#
 
Done: Java 9 installation is done on CentOS 8.

No comments:

Post a Comment