Install Oracle Java 7/8 (JDK and JRE) In Ubuntu 14.04

You can install Oracle Java 8 (JDK8 and JRE8) In Ubuntu 14.04 easily.

Add PPA repository and install Oracle Java 7/8 using the following commands:

Oracle Java 7:

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

Oracle Java 8:

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

Check installation:

 java -version
 
 Or,

 javac -version

Happy coding 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s