Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Programming»JAVA»How To Install Oracle Java 11 on Ubuntu 16.04 LTS (Xenial)

    How To Install Oracle Java 11 on Ubuntu 16.04 LTS (Xenial)

    By RahulApril 3, 20192 Mins Read

    Java is a popular programming language for system software development and web application. You need to install the Java Development Kit (JDK) and Java Runtime Environment (JRE) for the setup of the Java development environment. JDK compiled the source java file and make a java class file. JRE is used to run that intermediate class file. This tutorial will guide you to install Oracle Java 11 LTS version on Ubuntu 16.04 LTS Xenial system.

    Advertisement
    • Install Oracle Java 8 on Ubuntu 6.04 Xenial

    Step 1 – Prerequsities

    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 16.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 these packages. This script downloads the Java archive from the official site and configures on your system

    sudo apt update
    sudo apt-get install oracle-java11-installer
    

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

    sudo apt-get 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 16.04 LTS system.

    Happy coding!

    Java Java 11 Java 11 LTS Ubuntu 16.04
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Set JAVA_HOME environment variable on macOS

    How to Set JAVA_HOME environment variable on macOS

    What is the Access Modifiers in Java

    What are the Access Modifiers in Java

    Installing Java on Ubuntu 22.04

    How to Install JAVA on Ubuntu 22.04

    View 4 Comments

    4 Comments

    1. Horacio Jowett on May 30, 2020 9:56 pm

      The clarification of the critical situation in the world may help Your business. We don’t give advice on how to run it. We highlight key points from the flood of information for You to draw conclusions. Fact: conflicting vested interests change the world. Agenda: control and reduction of the human population. Ways and Means: genetic engineering of viruses, mass-media scares, mandatory vaccination.
      Thank You for the time of reading our unsolicited message! God bless You.
      See: bit.ly/evilempire-blog

      Reply
    2. Ivan on July 14, 2019 9:47 am

      This solution doesn’t work anymore, you need to download JDK by yourself and place it in the folder. This blog post was useful to me so I am making comment to save someone’s time.

      Reply
    3. David on April 16, 2019 9:11 am

      It’s important to understand that both OpenJDK 11 and Oracle Java SE 11 are NOT certified for ubuntu 16.04. They are only certified for both Ubuntu 18.04 and Ubuntu 18.10:

      https://www.oracle.com/technetwork/java/javase/documentation/jdk11certconfig-5069638.html

      Operating Systems:

      Linux

      Platform CPU Architecture Version Introduced In Notes

      Ubuntu Linux x64 (64-bit) 18.10 11.0.1 Only X.org Mode supported. Wayland mode is unsupported.
      Ubuntu Linux x64 (64-bit) 18.04 LTS 11 Only X.org Mode supported. Wayland mode is unsupported.

      Reply
    4. sb on December 23, 2018 9:19 pm

      Hi Rahul,
      Just curious, why not make a PPA which will settle the hassle once for all?
      Like in your previous posts on java 8 installation, you suggested the WEBUPD8 PPA from Andrei.

      There exists a linuxuprising PPA, would you recommend that?

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.