How to Install Java Runtime Environment on Ubuntu?
Contents

How to install Java (the default JDK) on Ubuntu using apt-get

  • Step 1: Update Ubuntu. The first thing you should always do is update your system. You can do so by running the following commands: apt-get update && apt-get upgrade.
  • Step 2: Install the default JDK. Run the following command: apt-get install default-jdk.

How do I download and install Java on Ubuntu?

How to Download & Install Java in Linux(Ubuntu)

  1. Select x86 for 32-bit system.
  2. Select x64 for 64-bit system.
  3. Select the tar.gz for Ubuntu.
  4. Select rpm for Debian based system.

How do I install Java 10 on Ubuntu?

To install Java JDK10, follow the steps below:

  • Step 1: Add A Third Party PPA to Ubuntu. The easiest way to install Oracle Java JDK 10 on Ubuntu is via a third party PPA… To add that PPA, run the commands below.
  • Step 2: Download Oracle Java 10 Installer.
  • Step 3: Configure Oracle JDK10 as Default.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest