Install Oracle Java 11 on Ubuntu 16.04 LTS (Xenial)
Java is a popular programming language for developing system software and web applications. For the Java development environment to be set up, you must first install the Java Development Kit (JDK) and Java Runtime Environment (JRE). JDK compiled a java class file from the source java file. The intermediate class file is run utilizing JRE.
Table of Contents
Oracle Java 11 Installation
In this article, we will walk you through step by step process as to how you can install Oracle Java 11 on your Ubuntu 16.04 LTS (Xenial) System. Follow the steps below to successfully install Oracle Java 11 on your system.
Step 1: Update the current Packages on the System
Run login shell as the sudo user and update the current packages installed before starting the installation.
sudo apt update sudo apt upgrade
Step 2: Now Install Java 11 on Ubuntu
Before starting the installation process you need to add the following PPA Linuxuprising/java to your Ubuntu system. This PPA includes the Java installation script in the package oracle-java11-installer.
sudo add-apt-repository ppa:linuxuprising/java
Then, using the script included with these packages, install Java 11. This script gets the Java archive from the official site and installs it on your system.
sudo apt update sudo apt-get install oracle-java11-installer
Install the following package to make Java 11 the Ubuntu 18 system’s default Java version.
sudo apt-get install oracle-java11-set-default
Step 3: Verify the installed Java Version on your system
Use the following command to see what Java version is installed on your system.
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)
Congrats! You now have Java 11 successfully installed on your Ubuntu 16.04 LTS (Xenial) System. Have fun coding!
Getting Around: 9 Top Keyboard Shortcuts for Mac
As easy to use as Macs are, there’s always room for improvement in the user-friendly department. Case in point: Mac…