[LINUX] Install java (Oracle JDK14) on CentOS7

I will introduce the procedure to install java (jdk14) on CentOS7. This time I got the rpm file and installed it.

Download Oracle JDK 14

Download jdk-14_linux-x64_bin.rpm with the following command. curl -OL -b "oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/14+36/076bab302c7b4508975440c56f6cc26a/jdk-14_linux-x64_bin.rpm"

Execution result


[root@CENTOS7 ~]# curl -OL -b "oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/14+36/076bab302c7b4508975440c56f6cc26a/jdk-14_linux-x64_bin.rpm"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   527  100   527    0     0    774      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  165M  100  165M    0     0   232k      0  0:12:06  0:12:06 --:--:--  227k
[root@CENTOS7 ~]#

Check the hash value of the downloaded file

Check the hash value of jdk-14_linux-x64_bin.rpm in [Java SE 14 Binaries Checksum](https://www.oracle.com/webfolder/s/digest/14checksum.html" Java SE 14 Binaries Checksum ") To do. Since the hash value is sha256: c470c99df36a33274832828475766da3e054e0a12db454c1d7c97ae909a55ecb, get the hash value of the downloaded file with the following command and check that it matches.

sha256sum jdk-14_linux-x64_bin.rpm

Execution result


[root@CENTOS7 ~]# sha256sum jdk-14_linux-x64_bin.rpm
c470c99df36a33274832828475766da3e054e0a12db454c1d7c97ae909a55ecb  jdk-14_linux-x64_bin.rpm
[root@CENTOS7 ~]#

Installing Oracle JDK 14

Install the jdk-14_linux-x64_bin.rpm downloaded with the following command.

rpm -ivh jdk-14_linux-x64_bin.rpm

Execution result


[root@CENTOS7 ~]# rpm -ivh jdk-14_linux-x64_bin.rpm
warning: jdk-14_linux-x64_bin.rpm:Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing...              ################################# [100%]
Updating/During installation...
   1:jdk-14-2000:14-ga                ################################# [100%]
[root@CENTOS7 ~]#

Confirmation of Oracle JDK 14 installation

Confirm that jdk14 is installed with the following command.

java -version which java

Execution result


[root@CENTOS7 ~]# java -version
java version "14" 2020-03-17
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
[root@CENTOS7 ~]# which java
/usr/bin/java
[root@CENTOS7 ~]#

reference

Installation of the JDK on Linux Platforms Java SE 14 Binaries Checksum Java SE Development Kit 14 - Downloads


that's all

Recommended Posts

Install java (Oracle JDK14) on CentOS7
Install oracle java8 on amazon linux2
Install Faiss on CentOS 7
Install numba on CentOS 7.2
Install Python3.4 on CentOS 6.6
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Install awscli on centos7
Install Chainer on CentOS 6.7
Install ImageMagick-6.2.x series on CentOS7.7
Install Python 3.8 on CentOS 7 (SCL)
Install the JDK on Linux
Install Chrome on CentOS 7 series
Install Python 3.8 on CentOS 8 (AppStream)
Procedure for manually installing Java (jdk1.8) on Linux (CentOS7)
Steps to install MySQL 8.0 on CentOS 8.1
raspberry pi 4 centos7 install on docker
Steps to install VirtualBox on CentOS
How to install PyPy on CentOS
How to install TensorFlow on CentOS 7
Install pip on CentOS7. Also iPython.
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
Install Python on CentOS using Pyenv
How to install Maven on CentOS
Study Note 9_Install Jenkins on CentOS7
Install Python on CentOS using pyenv
Enable sar command on CentOS (install sysstat)
Install Mecab on Linux (CentOS) with brew
How to install Apache (httpd) on CentOS7
How to install Eclipse GlassFish 5.1.0 on CentOS 7
How to install Apache (httpd) on CentOS8
Install PostgreSQL from source code on CentOS
Install pyenv and rbenv on CentOS system-wide
Until you install Apache and Tomcat on Linux (CentOS) and deploy Java apps
CentOS8 --Install --Django
CentOS8 --Install --Python3
[Failure] Install Stack Overflow Clone Askbot on CentOS 6.4
Install mecab on Marvericks
Install Tensorflow on Mac
Install TensorFlow on Ubuntu
Install pyenv on mac
Install pip on Mavericks
Install Python on Pidora.
Install mongodb on termux
Install Scrapy on python3
Install docker on Fedora31
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
Install Plone (4.3.6) on MacOSX (10.10.3)
Install PySide2 on Ubuntu
Install gensim on Marvericks
Install JModelica on Ubuntu
Install Anaconda on Windows 10
Install numpy on Marvericks
Install python on windows
Install enebular-agent on Chromebook
Install pycuda on Windows10
Install aws-cli on MacPorts
Install pygraphviz on Windows 10
Install Docker on AWS