Install Java 8 on Ubuntu 14.04

  • Last Created On Dec 09, 2024
  • 10
0 0

This guide assumes you have a brand-new Ubuntu 14.04 VPS from AKLWEB Host, using root. If you aren’t logged in as root, type

su -

then enter your root password. You will be logged into the root account.

Java 8 is a 2014 update to Java that includes security updates, performance updates, and new programming enhancements. Some of the new enhancements include lambda expressions, date and time API, and the Nashhorn JavaScript engine.

Step 1: Add the repository

At the time of writing, Java 8 is not in the sources list by default, so we have to add the “Webupd8” repo, which contains Java 8.

add-apt-repository ppa:webupd8team/java

Step 2: Update the repository list

apt-get update

Step 3: Install

Run the following command to install Java 8:

apt-get install oracle-java8-installer

During the installation, you will need to agree to the Oracle license. This is as simple as selecting “yes” and hitting “enter”.

Step 4: Verify installation

Execute this command to check that the installation was successful:

java -version

… and you will output similar to the following (depending on the current version of Java 8).

java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

And you’re good to go! Java 8 is now installed on your Ubuntu VPS.

Views: 10

Recent Articles

  • How to Install JAX with ROCm Acceleratio...
    96
  • Deploy a PyTorch Workspace on a Vultr Cl...
    71
  • Managing Backup Storage
    83
  • Automating FTP Backups in Windows Server
    71
  • Automating FTP Backups in Linux
    75

Popular Articles

  • Our General Terms & Conditions
    2631
  • Our Privacy Policy
    2477
  • Our Cookies Policy
    275
  • Our Terms of Use
    152
  • How to Install JAX with ROCm Acceleratio...
    96