• Home
  • Ubuntu 20.04
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 20.04
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Install Oracle Java 11 on Ubuntu 18.04 LTS (Bionic)

Written by Rahul, Updated on October 13, 2020

Java is a popular programming language for the system software development and web application. You need to install Java Development Kit (JDK) and Java Runtime Environment (JRE) for preparation of a Java development system. This tutorial will guide you to install Oracle Java 11 LTS version on Ubuntu 18.04 LTS Bionic system.

  • Install Oracle Java 8 on Ubuntu 18.04 Bionic

Prerequisites

Before beginning the installation run login shell as the sudo user and update the current packages installed.

sudo apt update
sudo apt upgrade 

Step 2 – Install Java 11 on Ubuntu 18.04

You need to add the following PPA to your Ubuntu system. This PPA contains a package oracle-java11-installer having the Java installation script.

sudo add-apt-repository ppa:linuxuprising/java

Then install Java 11 using the script provided in this packages. This script downloads the Java archive from the official site and configures on your system

sudo apt update
sudo apt install oracle-java11-installer

Also, install the following package to configure Java 11 as default Java version on your Ubuntu 18 system.

sudo apt install oracle-java11-set-default

Step 3 – Verify Java Version

Check the installed Java version on your system using the following command.

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)

You have successfully installed Java 11 on Ubuntu 18.04 LTS system.

Happy coding!

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

6 Comments

  1. Avatar bibhuti bhusan mishra Reply
    September 22, 2019 at 7:32 am

    i am getting E: Package ‘oracle-java11-installer’ has no installation candidate
    can you please help!!!!

  2. Avatar Ahmed AlZabidi Reply
    September 9, 2019 at 6:47 am

    Oracle has changed their licenses, so, we should download Java 11 local version.

    • Avatar walter Reply
      February 3, 2020 at 1:01 pm

      how can I download Java 11 local version?
      (It is all so confusing)
      Walter

      • Avatar Luke G. Reply
        February 24, 2020 at 7:07 pm

        Change the install to ‘apt install oracle-java11-installer-local’

  3. Avatar Anatolii Reply
    June 16, 2019 at 12:49 am

    Thanks for wonderful article. This is clearly and really helpful

  4. Avatar kaushal nayak Reply
    May 21, 2019 at 6:18 am

    Thanks for wonderful article. This is really really Helpful.

Leave a Reply Cancel reply

Popular Posts

  • How To Install Python 3.9 on Debian 10
  • How to Install Python 3.9 on CentOS/RHEL 8
  • Download Ubuntu 20.04 LTS – DVD ISO Images
  • Linux Run Commands As Another User
  • How to Check PHP Version (Apache/Nginx/CLI)
  • How To Install and Configure GitLab on Ubuntu 20.04
  • How to Install PyCharm on Ubuntu 20.04
  • How to Check Ubuntu Version with Command or Script
© 2013-2021 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy