This article will help you to Install Oracle JAVA 6 (JDK/JRE 6u45) on Ubuntu 14.10, 14.04 LTS and 12.04 LTS and LinuxMint systems using PPA File. To Install higher version (Java 7 or 8) on your system using following links.
Install Java JDK/JRE 7 on Ubuntu
Install Java JDK/JRE 8 on Ubuntu
Step 1: Install Java 6 (JDK/JRE 6)
Add the webupd8team java PPA repository in our system and install Oracle java8 using following set of commands.
$ sudoadd-apt-repository ppa:webupd8team/java $ sudoapt-get update $ sudoapt-get install oracle-java6-installer
Step 2: Verify JAVA Version
After successfully installing oracle java using above step verify installed version using following command.
$java -version java version "1.6.0_45 " Java(TM) SE Runtime Environment (build 1.6.0_45-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
Step 3: Setup JAVA Environment
Webupd8team is providing a package to set environment variables, Install this package using following command.
$ sudo apt-getinstall oracle-java6-set-default
References:
https://launchpad.net/~webupd8team/+archive/java
Thank you.