How to Install Java 8 on Linux?
Contents

Install Oracle Java 8 / 9 in Ubuntu 16.04, Linux Mint 18

  • Add the PPA. Open terminal (Ctrl+Alt+T) and run the command:
  • Update and install the installer script: Run commands to update system package index and install Java installer script:
  • Check the Java version. To check the Java version after installing the package, run command:
  • Set Java environment variables.

How do I install Java JDK on Linux?

To install the 64-bit JDK on a Linux platform:

  1. Download the file, jdk-11.interim.update.patch_linux-x64_bin.tar.gz .
  2. Change the directory to the location where you want to install the JDK, then move the .tar.gz archive binary to the current directory.
  3. Unpack the tarball and install the JDK:

How do I install Java on Ubuntu?

This is the OpenJDK package which is an open source implementation of Java.

  • Step 1: Update Ubuntu. The first thing you should always do is update your system.
  • Step 2: Install the default JDK. Run the following command: apt-get install default-jdk.
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest