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: ftp.iitm.ac.in
* extras:
repos.del.extreme-ix.org
* updates:
repos.del.extreme-ix.org
Resolving Dependencies
…………….
Installed:
java-1.8.0-openjdk.x86_64 1:1.8.0.212.b04-0.el7_6
Dependency Installed:
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.212.b04-0.el7_6 javapackages-tools.noarch
0:3.4.1-11.el7
Complete!
[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