How to Install JAVA 8 (JDK 8u121) on Ubuntu via PPA

Java and the JVM (Java’s virtual machine) are widely used and required for many kinds of software. Webupd8 Team is maintaining a PPA repository with installer scripts for the latest Java 8. The installer provides Oracle Java 8 on Ubuntu (which includes Java JDK, JRE and the Java browser plugin). You can download the latest package from official download page.

This article will help you to Install Oracle JAVA 8 on Ubuntu using PPA.

See Also:

  • Install Java 8 on CentOS/RHEL 6/5
  • Install JAVA 7 on CentOS/RHEL
  • Java 8 on Ubuntu

    Step #1 Add The Webupd8 Team PPA

    To install JAVA 8 on Ubuntu, we need to add webudp8team Java PPA repository in our system. Run the following command to add the Webupd8 PPA.

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

    Step #2 Installing Java 8 on Ubuntu

    After, adding webupd8team Java PPA repository in your system, install Oracle Java 8 using following command.

    $ sudo apt-get install oracle-java8-installer

    Step #3 Verify Installed Java Version

    At this stage you have successfully installed oracle Java on your Ubuntu system. To verify installed version of JAVA on your system.

    $ java -version
    java version "1.8.0_121"
    Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode, sharing)

    Step #4 Configuring Java Environment

    In Webupd8 PPA repository also providing a package to set environment variables, Install this package using the following command.

    $ sudo apt-get install oracle-java8-set-default


    Enjoy it!

    No Responses

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

    The reCAPTCHA verification period has expired. Please reload the page.