How to Install Oracle Java 11.0.2 LTS Version on CentOS 7.6

To Install Oracle Java 11.0.2 LTS Version On CentOS 7.6

Download Link :

wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie"   "http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.rpm"

Installation procedure:

Download the Java 11 version package by executing the following command.

[root@linuxhelp ~]# wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.rpm" 
--2019-06-07 10:57:42--  http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.rpm
Resolving download.oracle.com (download.oracle.com)... 104.108.220.248
Connecting to download.oracle.com (download.oracle.com)|104.108.220.248|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.rpm [following]
--2019-06-07 10:57:42--  https://edelivery.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.rpm
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.57.239.203, 2600:1417:73:19a::366, 2600:1417:73:1a7::366, ...
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.57.239.203|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.rpm?AuthParam=1559885322_9b43770132cd19d8697f0898d97fe048 [following]
--2019-06-07 10:57:43--  http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.rpm?AuthParam=1559885322_9b43770132cd19d8697f0898d97fe048
Connecting to download.oracle.com (download.oracle.com)|104.108.220.248|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.rpm?AuthParam=1559885322_9b43770132cd19d8697f0898d97fe048 [following]
--2019-06-07 10:57:44--  https://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.rpm?AuthParam=1559885322_9b43770132cd19d8697f0898d97fe048
Connecting to download.oracle.com (download.oracle.com)|104.108.220.248|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 161493048 (154M) [application/x-redhat-package-manager]
Saving to: ‘jdk-11.0.2_linux-x64_bin.rpm’

100%[===================================================================================================>] 161,493,048  841KB/s   in 3m 21s 

2019-06-07 11:01:07 (783 KB/s) - ‘jdk-11.0.2_linux-x64_bin.rpm’ saved [161493048/161493048]

Install the java 11 version rom package as follows:

[root@linuxhelp ~]# rpm -Uvh jdk-11.0.2_linux-x64_bin.rpm 
warning: jdk-11.0.2_linux-x64_bin.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:jdk-11.0.2-2000:11.0.2-ga        ################################# [100%]

After successful installation ,verify the version of java.

[root@linuxhelp ~]# java -version
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)

Set the environment variable for java 11 version.

[root@linuxhelp ~]# vim /etc/environment
# jdk 11.0.2

export JAVA_HOME:/usr/java/jdk-11.0.2
export JAVA_PATH:/usr/java/jdk-11.0.2/bin

With this, Installation of java 11.0.2 version LTS On centOS 7.6 comes to end.

FAQ
Q
What is the difference between the applet and application on Java Development Kit 11?
A
The main difference between Applet And Application is that applet is a small java program that can be executed by a Java-compatible web browser while the application is a standalone program that can directly run on the machine on Java Development Kit 11.
Q
What is the need of applet in Java Development Kit 11?
A
In Java Development Kit 11, an applet can be fully functional Java application because it has the entire Java API at its disposal
Q
What is an applet in JDK 11?
A
In Java Development Kit 11, An applet is a java program that runs on a web browser.
Q
Is Java 11 Or JDK 11 Same?
A
Yes,Java 11 or Java Development Kit 11 is same.
Q
Does JDK 11 include JRE?
A
JRE is no longer included in Java Development Kit 11.