Skip to content

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

How to Install Java 7 (JDK 7u76) In Ubuntu 14.10, 14.04 LTS and 12.04 LTS & LinuxMint Via PPA. Installing Java 7 on Ubuntu System.

Category
Programming
Covers
APT, Java, Linux Mint
On this page
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

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

3 Comments

Leave a Reply

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


Back to top