• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install Oracle Java 11.0.2 Version on Ubuntu 19.04

  • 00:39 apt update
  • 00:48 add-apt-repository ppa:linuxuprising/java
  • 01:04 apt update
  • 01:15 apt install oracle-java11-installer
  • 01:55 java -version
{{postValue.id}}

Oracle Java 11.0.2 version

PPA For Java Installation Script:

add-apt-repository ppa:linuxuprising/java

Installation Procedure

Before adding the repository to the system,update the installed packages in the apt repository

root@linuxhelp:~# apt update
Hit:1 http://in.archive.ubuntu.com/ubuntu disco InRelease
Hit:2 http://security.ubuntu.com/ubuntu disco-security InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu disco-updates InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu disco-backports InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
147 packages can be upgraded. Run 'apt list --upgradable' to see them.

Now add the Personal package Archive of Java into the system as follows:

root@linuxhelp:~# add-apt-repository ppa:linuxuprising/java
 Oracle Java 11 (LTS) and 12 installer for Ubuntu, Linux Mint and Debian.

Java binaries are not hosted in this PPA due to licensing. The packages in this PPA download and install Oracle Java 11, so a working Internet connection is required.

The packages in this PPA are based on the WebUpd8 Oracle Java PPA packages: https://launchpad.net/~webupd8team/+archive/ubuntu/java

Created for users of https://www.linuxuprising.com/

Installation instructions (with some tips), feedback, suggestions, bug reports etc.:

Oracle Java 11: https://www.linuxuprising.com/2018/10/how-to-install-oracle-java-11-in-ubuntu.html
Oracle Java 12: https://www.linuxuprising.com/2019/03/how-to-install-oracle-java-12-jdk-12-in.html

Important notice regarding Oracle Java 11: the Oracle JDK license has changed starting April 16, 2019. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. A FAQ is available here: https://www.oracle.com/technetwork/java/javase/overview/oracle-jdk-faqs.html . After this change, new Oracle Java 11 releases (11.0.3 and newer) require signing in using an Oracle account to download the binaries, so I can't update the PPA with new packages (the last version in the PPA being 11.0.2). If you want to continue using newer Oracle Java 11 versions, and you have an Oracle account so you can download newer Oracle Java builds, see this article: https://www.linuxuprising.com/2019/02/install-any-oracle-java-jdk-version-in.html

About Oracle Java 10: This version reached the end of public updates, therefore it's no longer available for download. The Oracle Java 10 packages in this PPA no longer worked due to this, so I have removed them. Switch to Oracle Java 11 or OpenJDK 11 instead, which is long term support.
 More info: https://launchpad.net/~linuxuprising/+archive/ubuntu/java
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Hit:1 http://security.ubuntu.com/ubuntu disco-security InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu disco InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu disco-updates InRelease
Get:4 http://ppa.launchpad.net/linuxuprising/java/ubuntu disco InRelease [15.9 kB]
Hit:5 http://in.archive.ubuntu.com/ubuntu disco-backports InRelease
Get:6 http://ppa.launchpad.net/linuxuprising/java/ubuntu disco/main amd64 Packages [1,768 B]
Get:7 http://ppa.launchpad.net/linuxuprising/java/ubuntu disco/main Translation-en [676 B]
Fetched 18.3 kB in 2s (10.1 kB/s)
Reading package lists... Done

Now update the apt repository to reload the java repository into the repository list.

root@linuxhelp:~# apt update
Hit:1 http://security.ubuntu.com/ubuntu disco-security InRelease
Hit:2 http://ppa.launchpad.net/linuxuprising/java/ubuntu disco InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu disco InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu disco-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu disco-backports InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
147 packages can be upgraded. Run 'apt list --upgradable' to see them.

Now Download and Install the Java 11.0.2 version by executing the following command.

root@linuxhelp:~# apt install oracle-java11-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gsfonts-x11 java-common oracle-java11-set-default
Suggested packages:
.
.
.
.
Downloading Oracle Java 11...
--2019-06-06 10:37:12--  http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.tar.gz
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.tar.gz [following]
--2019-06-06 10:37:13--  https://edelivery.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.57.239.203, 2600:140f:a800:194::366, 2600:140f:a800:19f::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.tar.gz?AuthParam=1559797691_0582c374d10cdcf60b8b4d3cb521fbfa [following]
--2019-06-06 10:37:13--  http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.tar.gz?AuthParam=1559797691_0582c374d10cdcf60b8b4d3cb521fbfa
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.tar.gz?AuthParam=1559797691_0582c374d10cdcf60b8b4d3cb521fbfa [following]
--2019-06-06 10:37:14--  https://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.tar.gz?AuthParam=1559797691_0582c374d10cdcf60b8b4d3cb521fbfa
Connecting to download.oracle.com (download.oracle.com)|104.108.220.248|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 179640645 (171M) [application/x-gzip]
Saving to: ‘jdk-11.0.2_linux-x64_bin.tar.gz’

     0K ........ ........ ........ ........ 18%  390K 6m6s
 32768K ........ ........ ........ ........ 37%  423K 4m31s
 65536K ........ ........ ........ ........ 56%  820K 2m38s
 98304K ........ ........ ........ ........ 74%  457K 92s
131072K ........ ........ ........ ........ 93%  347K 26s
163840K ........ ...                       100%  376K=6m38s

2019-06-06 10:43:53 (440 KB/s) - ‘jdk-11.0.2_linux-x64_bin.tar.gz’ saved [179640645/179640645]

Download done.


Successfully Downloaded the java version 11.0.2 and installation process starts here.
Removing outdated cached downloads...
update-alternatives: error: no alternatives for java
update-alternatives: using /usr/lib/jvm/java-11-oracle/bin/jaotc to provide /usr/bin/jaotc (jaotc) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-oracle/bin/jar to provide /usr/bin/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-oracle/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-oracle/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-oracle/bin/javac to provide /usr/bin/javac (javac) in auto mode
.
.
.
.
update-alternatives: using /usr/lib/jvm/java-11-oracle/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-oracle/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-oracle/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-oracle/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
Oracle JDK 11 installed

#####Important########
To set Oracle jdk11 as default, install the "oracle-java11-set-default" package.
E.g.: sudo apt install oracle-java11-set-default.
Selecting previously unselected package oracle-java11-set-default.
(Reading database ... 145536 files and directories currently installed.)
Preparing to unpack .../oracle-java11-set-default_11.0.2-2~linuxuprising1_amd64.deb ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for man-db (2.8.5-2) ...

Lets check the version of Java in the following way .

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)

With this,Installation of Oracle Java 11.0.2 version on Ubuntu 19.04 comes to end.

Tags:
jackson
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is Java Development Kit ?

A

Java Development Kit is a software development environment used for developing java applications and applets.

Q

Why do i need java development Kit?

A

Java Development kit provides tools such as the Java Compiler,used by the IDE's and SDK's for developing java programs.

Q

What does Java Development Kit include?

A

Java Development Kit includes JRE, an interpreter, a compiler,an archiver, a documentation generator and other tools needed in java development.

Q

What is JRE in Java Development Kit?

A

JRE stands for java run time environment .JRE is an installation package which provides environment to only run but not to develop the java program on to your machine in Java Development Kit.

Q

What is the role of JVM in JRE?

A

JAVA Virtual Machine (JVM) provides runtime environment in which java bytecode can be executed where it is available for many hardware and software platforms.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Owen ?
How to add SSH key to my Gitlab account

I need to add the SSH key in my gitlab account. How to do so ????

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.