How to Install Java 7 (JDK 7u76) In Ubuntu 16.04, 14.04 LTS, 12.04 LTS & LinuxMint Via PPA
Abstract: Redhat and Fedora read This Article. Install JAVA Add the webupd8team Java PPA repository in our system and install Oracle Java 7 using following set
- JAVA 8 – Install on Ubuntu, LinuxMint
- JAVA 9 – Install on Ubuntu, LinuxMint
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 JAVAAdd 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-installerVerify 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