How to Install Oracle Java 8 on Ubuntu 12.04 LTS
- These instructions are intended specifically for installing Oracle Java 8 on Ubuntu 12.04 LTS.
- I’ll be working from a Liquid Web Core Managed Ubuntu 12.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 12.04 LTS.
Step #1: Install Capability to Manage Repositories
python-software-properties allows for easy management of your distribution and independent repositories:
sudo apt-get install python-software-properties
Step #2: Add the WebUpd8 Team Personal Package Archive (PPA)
Add the PPA:
sudo apt-add-repository ppa:webupd8team/java
Step #3: 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 #4: 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)
Related Articles:
- What is CentOS? Everything You Need to Know
- Check Apache Status with systemctl status and apachectl status Commands
- How to Find the Server Name Indication (SNI) Supporting Details
- How to Install Pip on CentOS 7
- Get Kernel Version for Linux: A Guide
- What Is a Time Series Database? How It Works & Use Cases

About the Author: J. Mays
As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.
Latest Articles
ChatGPT Integration — How to Create a Plugin for ChatGPT
Read ArticleWhat is CentOS? Everything You Need to Know
Read ArticleWhat is CentOS? Everything You Need to Know
Read ArticleRedis as Cache: How It Works and Why You Should Use It
Read ArticleRefer-a-Friend Program for Website Hosting: Get $100 for Each Friend!
Read Article