Java 9/jdk1.9 packages are not available in CentOS 7 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 CentOS 7 – 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 ~]# ls -ltrh
jdk-9.0.4_linux-x64_bin.rpm
-rw-r--r--. 1 root
root 306M Jul 10 19:28 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
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 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.
No comments:
Post a Comment