• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / Install Oracle Java On Ubuntu 16.04, via Terminal

Install Oracle Java On Ubuntu 16.04, via Terminal

By Sourabh / April 29, 2016 Category: How To, Ubuntu

Install Oracle Java on Ubuntu 16.04. How to install Java (JDK) on Ubuntu, via Terminal. Commands to install the Java Runtime Environment (JRE) on Ubuntu 16.04.

You can easily install Java on Ubuntu Systems, using the version packaged. For example the following command will install OpenJDK 8:

sudo apt-get update
sudo apt-get install default-jre

Please note that above command will install the Java Runtime Environment (JRE). If you wish to install the JDK (Java Development Kit), run the following command:

sudo apt-get install default-jdk

You can also install the Oracle JDK bu WebUpd8 PPA:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

Install Oracle JDK 6 or JDK 7

To install JDK 6 on Ubuntu 16.04, run the following command:

sudo apt-get install oracle-java6-installer

To install JDK 7 on Ubuntu 16.04, run the following command:

sudo apt-get install oracle-java7-installer

Install Oracle JDK 8

To install JDK 8 on Ubuntu 16.04, run the following command:

sudo apt-get install oracle-java8-installer

Install Oracle JDK 9

To install JDK 9 on Ubuntu 16.04, run the following command:

sudo apt-get install oracle-java9-installer

Please note that there may be multiple Java versions installed on one Ubuntu server. To configure which Jaa version to use, run the following command:

sudo update-alternatives --config java

Please note that many Linux distribution are shipped with OpenJDK, other version of Java. OpenJDK is not developed by Sun Microsystems, instead OpenJDK is an open source implementation of Java application.

Before you begin the installation, run the following command to verify the version of Java already installed on the system.

$ java -version

Java-01

Tags: Install Hadoop On Ubuntu, Install Java 7 On Ubuntu, Install Java 8 On Ubuntu, Install Java On Ubuntu 14, Install Java On Ubuntu 14.04, Install Java On Ubuntu 14.10, Install Java On Ubuntu 15.04, Install Java On Ubuntu 15.10, Install Java On Ubuntu 16.04, Install Java On Ubuntu Apt-Get, Install Java On Ubuntu Server, Install Java On Ubuntu Using Terminal, Install Oracle Java 8 Ubuntu, Install Oracle Java Elementary Os, Install Oracle Java On Ubuntu, Install Oracle Java On Ubuntu 14.04, Install Oracle Java On Ubuntu 14.10, Install Oracle Java On Ubuntu 15.04, Install Oracle Java On Ubuntu 15.10, Install Oracle Java On Ubuntu 16.04, Install Oracle Java Ubuntu Command Line, Install Oracle Java Ubuntu Manually, Install Oracle Java Ubuntu Repository, Install Oracle Java Ubuntu Terminal, Install Oracle Java Ubuntu Webupd8, Ubuntu Install Oracle Java 7 Command Line

Primary Sidebar

Latest Posts

Job Scheduling Using At Command In Linux With Examples

How To Check Permissions Of A Directory In Linux Command

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap