Saturday 4 May 2019

How to install Java8/jdk1.8 in Centos7 using YUM

Step 1: Install OpenJDK 8 JRE and JDK packages using the yum package manager. Java 8 binaries are available in Centos 7 repository. Run the following command to install the packages:

[root@linuxcnf ~]# yum install java
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
Resolving Dependencies
  java-1.8.0-openjdk.x86_64 1:

Dependency Installed:
  java-1.8.0-openjdk-headless.x86_64 1:                                                   javapackages-tools.noarch 0:3.4.1-11.el7

[root@linuxcnf ~]#

Step 2: Verify Installation:

[root@linuxcnf ~]# java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
[root@linuxcnf ~]#

Java 8 installation is done using YUM!!!

No comments:

Post a Comment