Skip to content

How to Install Java 7 (JDK 7u76) In Ubuntu 16.04, 14.04 LTS, 12.04 LTS & LinuxMint Via PPA

Advertisement
Warning – Java 7 is officially deprecated by Oracle team. It is no more available for download on the public network. The Oracle team recommends upgrading to Java 8 or Java 9. You can follow below tutorials to install accordingly.

This article will help you to Install Oracle JAVA 7 (JDK/JRE 7u76) on Ubuntu 14.10, 14.04 LTS and 12.04 LTS and LinuxMint systems using PPA File. To Install Java 8 in CentOS, Redhat and Fedora read This Article.

install java

Install JAVA

Add the webupd8team Java PPA repository in our system and install Oracle Java 7 using following set of commands. During installation installer will prompt for accepting license agreement.

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer

Verify Java Version

After successfully installing Oracle Java 7 on Ubuntu & LinuxMint systems using above step, Le’ts verify installed version of Java on your system using following command.

$ java -version

java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)

Step 3: Setup JAVA Environment

Webupd8team is providing a package to set Java 7 as default with environment variables. Install this package using following command.

$ sudo apt-get install oracle-java7-set-default

References:
https://launchpad.net/~webupd8team/+archive/java

Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

3 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top