Skip to content

Commit 4b7ed94

Browse files
Rajakavitha1andystevensname
authored andcommitted
[Update] Install Oracle Java SE Development Kit 11 on Ubuntu (linode#2878)
* updated OracleJDK 11 instructions * Update title and h1_title * Add link to Oracle account creation
1 parent f994a8d commit 4b7ed94

File tree

1 file changed

+28
-12
lines changed
  • docs/development/java/install-java-on-ubuntu-18-04

1 file changed

+28
-12
lines changed

docs/development/java/install-java-on-ubuntu-18-04/index.md

+28-12
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ modified: 2019-01-28
1010
modified_by:
1111
name: Linode
1212
published: 2017-05-30
13-
title: Install Oracle Java SE Development Kit 11 on Ubuntu
13+
title: How To Install Oracle Java SE Development Kit 11 on Ubuntu 18.04
14+
h1_title: Installing Oracle Java SE Development Kit 11 on Ubuntu 18.04
1415
contributor:
1516
name: Phil Zona
1617
link: 'https://github.com/pbzona'
@@ -31,36 +32,51 @@ This guide demonstrates installing Oracle's Java Standard Edition Development Ki
3132

3233
- You will need root access to your Linode, or a [limited user account](/docs/security/securing-your-server/#add-a-limited-user-account) with `sudo` privileges.
3334

34-
- Update your system:
35+
- Connect to your Linode using a remote desktop sharing system such as a VNC. For more information, see [Install VNC on Ubuntu 18.04](/docs/applications/remote-desktop/install-vnc-on-ubuntu-18-04/) guide.
3536

36-
sudo apt update && sudo apt upgrade
37+
- [Create an Oracle account](https://profile.oracle.com/myprofile/account/create-account.jspx) and download the Oracle JDK 11 .tar.gz [archive] (https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html). Ensure that the Oracle JDK version is the same as the oracle-java11-installer-local [package version] (https://launchpad.net/~linuxuprising/+archive/ubuntu/java/+packages).
3738

3839

3940
## Install Oracle JDK
4041

41-
The Linux Uprising [Oracle Java PPA](https://launchpad.net/~linuxuprising/+archive/ubuntu/java) uses packages that include install scripts to download and install the Oracle JDK from Oracle's website. Alternatively, you can manually [download the binaries](https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html).
42+
The Linux Uprising [Oracle Java PPA](https://launchpad.net/~linuxuprising/+archive/ubuntu/java) uses packages that include install scripts to install the Oracle JDK.
43+
44+
1. Update your system:
45+
46+
sudo apt update && sudo apt upgrade
47+
48+
1. Check that SHA256 checksum of the binary you downloaded matches the [checksum](https://www.oracle.com/webfolder/s/digest/11-0-5-checksum.html):
49+
50+
cd Downloads/
51+
sha256sum jdk-11.0.5_linux-x64*
52+
53+
1. Create a `/var/cache/oracle-jdk11-installer-local/` folder, and copy the Oracle JDK 11 .tar.gz from `Downloads` folder to this folder.
54+
55+
sudo mkdir -p /var/cache/oracle-jdk11-installer-local/
56+
sudo cp jdk-11.0.5_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/
4257

4358
1. Add the PPA to Ubuntu. Apt will automatically refresh the package cache.
4459

4560
sudo add-apt-repository ppa:linuxuprising/java
61+
sudo apt-get update
4662

47-
1. Install the JDK. You'll be asked to agree to the licensing terms.
63+
1. Install the oracle JDK.
4864

49-
sudo apt install oracle-java11-installer
65+
sudo apt install oracle-java11-installer-local
5066

51-
1. If you want Oracle JDK as the system default, install `oracle-java11-set-default`:
67+
1. If you want Oracle JDK as the system default, install `oracle-java11-set-default-local`:
5268

53-
sudo apt install oracle-java11-set-default
69+
sudo apt install oracle-java11-set-default-local
5470

5571
1. Check that the install was successful with the following command:
5672

5773
java --version
5874

5975
{{< output >}}
6076
root@ubuntu:~# java --version
61-
java version "11.0.2" 2018-10-16 LTS
62-
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+7-LTS)
63-
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+7-LTS, mixed mode)
77+
java version "11.0.5" 2019-10-15 LTS
78+
Java(TM) SE Runtime Environment 18.9 (build 11.0.5+10-LTS)
79+
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)
6480
{{< /output >}}
6581

6682

@@ -84,4 +100,4 @@ OpenJDK includes a runtime environment and compiler which allows you to develop
84100

85101
- Install OpenJRE 11:
86102

87-
sudo apt install openjdk-11-jre
103+
sudo apt install openjdk-11-jre

0 commit comments

Comments
 (0)