nordvpn

How to install OpenJDK 13 on CentOS 8

How to install Java 13 on CentOS 8

In this tutorial, I will show you how to install java 13 on Centos 8. The Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc) and other tools needed in Java development.

Pre-requisites

  • Centos 8 install with root access

Read Also: Install postgreSQL 11 on Debian 10 (Buster)

1. Add AdoptopenJDK repo

Here I am installing OpenJDK using AdoptopenJDK repo. So let’s add the repo using the following command.

cat < /etc/yum.repos.d/adoptopenjdk.repo
[AdoptOpenJDK]
name=AdoptOpenJDK
baseurl=http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/centos/7/$(uname -m)
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
EOF

So we will have AdoptOpenJDK repo under /etc/yum.repos.d/. Let’s install OpenJDK.

2. Install OpenJDK 13 on CentOS 8

Here we will use yum to install OpenJDK 13 on Centos 8.

$ yum update -y
$ yum install adoptopenjdk-8-openj9 -y

3. Check java Version

Now after installing open JDK check the version using the following command

$ java -version
openjdk version "13" 2019-09-17
OpenJDK Runtime Environment AdoptOpenJDK (build 13+33)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.16.0, JRE 13 Linux amd64-64-Bit Compressed References 20190916_75 (JIT enabled, AOT enabled)
OpenJ9 - 867dab457
OMR - d4c85c31
JCL - 2858e3f001 based on jdk-13+33)

Read Also: How to install Java 11 on CentOS 7

If you have any issues using this tutorial please feel free to comment below.

Source: Adoptopenjdk

Leave a Reply

Your email address will not be published.


*



The reCAPTCHA verification period has expired. Please reload the page.

48-Hour Flash Sale! Courses from just $10.99