• 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

Clear History In Linux Terminal Permanently

How To Create Zip File In Ubuntu Terminal With Password

How To Check Difference Between Two Files In Linux Ubuntu

How To Check Kernel Installed Date In Linux Command Line

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

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

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