Home / Tutorials / How to Install Oracle Java 8 on Ubuntu

How to Install Oracle Java 8 on Ubuntu

Pre-Flight Check
  • These instructions are intended specifically for installing Oracle Java 8 on Ubuntu 14.04 LTS.
  • I’ll be working from a Liquid Web Core Managed Ubuntu 14.04 LTS server with Apache and PHP installed, and I’ll be logged in as non-root user.
Step #1: Add the WebUpd8 Team Personal Package Archive (PPA)

Add the PPA:

sudo apt-add-repository ppa:webupd8team/java

Note: Personal Package Archives include unsupported packages and are untrusted by the primary Ubuntu branch. At the time of publication, the WebUpd8 Oracle Java PPA is just an installer (meaning it does not include any Oracle Java binaries, but will download and install them). Use this PPA at your own risk.
Step #2: The Installation

As a matter of best practice we’ll update our packages:

sudo apt-get update

Then let’s install Oracle Java 8 with the PPA installer:

sudo apt-get install oracle-java8-installer

Be sure to accept the Oracle license!

Step #3: Verify Installation

Now verify that Java is installed and is of version 1.8.x:

java -version

Your result should be similar to:

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

About cmadmin

Web Developer & Designer | Android App Developer

Check Also

How To Install MongoDB on Ubuntu

What is MongoDb ? MongoDB is a free and open-source NoSQL document database used commonly …

Web Application using Java

Web Application using Java – Tutorial for Beginners

Web Application using Java – Java provides support for web application through Servlets and JSPs. …

Login


Username
Create an Account!
Password
Forgot Password? (close)

Sign Up


Username
Email
Password
Confirm Password
Want to Login? (close)

Forget Password?


Username or Email
(close)
%d bloggers like this:
SHARE
OR
SUBSCRIBE
To get latest new / tutorial / technology / development information subscribe with us.
ARE YOU READY? GET IT NOW!
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !
OR SUBSCRIBE WITH