How to Install Oracle Java 11.0.2 Version on Ubuntu 19.04
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.
Comments ( 0 )
No comments available