- 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. If you need more information then visit our tutorial on How to Add a User and Grant Root Privileges on Ubuntu 14.04 LTS.
Add the PPA:
sudo apt-add-repository ppa:webupd8team/java
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!
Now verify that Java is installed and is of version 1.8.x:
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)
Try a Free Cloud Server.
Trying a new server is a breeze, and it’ll be up and running in only a few minutes...