Home » Operating System » Install Oracle Java 8 or Java 7 in Ubuntu 14.04 or Linux Mint

Install Oracle Java 8 or Java 7 in Ubuntu 14.04 or Linux Mint

Sponsored

To install Oracle Java 8 or Java 7 in Ubuntu 14.04 or Linux Mint we need “webupd8” PPA. This ppa includes the java installer for ubuntu. The installer includes complete Java pack Java JDK, JRE and the Java browser plugin.

Installation is very simple

Install Oracle Java 8 on Ubuntu 14.04 open a terminal window (press Ctrl+Alt+T) and run the commands given below.

sudo add-apt-repository ppa:webupd8team/java -y
 sudo apt-get update
 sudo apt-get install oracle-java8-installer -y

This will Install Java 8 on Ubntu 14.04

To Install Oracle Java 7 on Ubuntu 14.04 Run the commands below.

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

Check your installation with this command

java -version

or

javac -version

Using between Oracle Java 7 and Oracle Java 8

Switch to Oracle Java 8 from Oracle java 7

sudo update-java-alternatives -s java-8-oracle

switch to Oracle Java 7 from Oracle java 8

sudo update-java-alternatives -s java-7-oracle

Sponsored

I am a Full stack Web Developer. I'm interested in Web Designing and passionate towards FOSS. I love Linux and like to promote it. A quick leaner, quick implementer, not away from errors, staying for software and knowledge freedom and doing programming in PHP, Mysql, Postgresql, Laravel, Angulajs and more..

Leave a Reply

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