Are you a Java programmer? Do you install Java on your Linux/Ubuntu? Then the post is for you. Today we will learn how to install Oracle Java (JDK) in Linux based operating system (i.e.: Linux Mint 17/Ubuntu). Let's make a try:

Oracle Java



☛ First of all you have to add the repository. To do this open the terminal and run the code given below:

sudo add-apt-repository ppa:webupd8team/java

☛ Then you have to update the local repository and for doing this paste the below code in the terminal and hit enter:

sudo apt-get update

☛ Now install the package by using the code below:

sudo apt-get install oracle-javaX-installer

✔ Change the 'X' with the desired version number (i.e.: 6/7/8) and your download will start. Accept the license agreement and it will start fetching the relevant files from the source to begin the installation process.

☛ For making the installed version of Java as default Java programme run the code given below:

sudo apt-get install oracle-javaX-set-default

✔ 'X' = Version number.

You are done !!!