Ubuntu Linux: Install Latest Oracle Java 7

Ubuntu Linux: Install Latest Oracle Java 7

To install the latest version of Oracle Java 7 on Ubuntu Linux, follow these steps:

  1. Add the Oracle Java PPA (Personal Package Archive) to your system by running the following command:
sudo add-apt-repository ppa:webupd8team/java
Source:‮tual.www‬turi.com
  1. Update the package index by running:
sudo apt update
  1. Install Oracle Java 7 by running:
sudo apt install oracle-java7-installer
  1. Once the installation is complete, you can verify that Java has been installed correctly by running the following command:
java -version

This should output the version of Java that you have installed, similar to the following:

java version "1.7.0_XX"
Java(TM) SE Runtime Environment (build 1.7.0_XX-bXX)
Java HotSpot(TM) 64-Bit Server VM (build XX, mixed mode)

Note: Replace XX with the version numbers of the Java installation that you have.

  1. If you want to set Oracle Java 7 as the default Java version on your system, you can run the following command:
sudo apt install oracle-java7-set-default

This will automatically set Oracle Java 7 as the default Java version when you install it.

Created Time:2017-10-30 14:27:27  Author:lautturi