Friday 31 December 2021

How to Install Java 11.0.13 on CentOS 8



Java 11.0.13  package is available in CentOS 8 base repositories to download and install. The java runtime environment package and its dependencies can be installed using dnf CentOS 8 package management tool.
 
This article describes How to install Java 11.0.13 on CentOS 8
 
[root@linuxcnf ~]# cat /etc/redhat-release
CentOS Linux release 8.5.2111
[root@linuxcnf ~]#
 
Step 1. Package Installation: Run the following command to install Java 11.0.13:
 
[root@linuxcnf ~]# dnf install java-11 -y
…………………………
Installed:
…………………………
java-11-openjdk-1:11.0.13.0.8-3.el8_5.x86_64
java-11-openjdk-headless-1:11.0.13.0.8-3.el8_5.x86_64
…………………………
 
Complete!
[root@linuxcnf ~]#
 
Step 3. Validate Installation: Run the following command to validate the installation
 
[root@linuxcnf ~]# java -version
openjdk version "11.0.13" 2021-10-19 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.13+8-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8-LTS, mixed mode, sharing)
[root@linuxcnf ~]#
 
Done!!! Java 11.0.13 installation is done on CentOS 8.

No comments:

Post a Comment