How to Install Oracle's Java in Linux

preview_player
Показать описание
Hello YouTube, it's TheLinuxNoob here. Today I'm going to show you the easiest way on how to install Oracle's version of Java in any Debian based Linux distrobution. Such as Ubuntu, or Linux Mint.

The first thing you want to do, is enter this command in the terminal:

sudo add-apt-repository ppa:webupd8team/java

After that, press enter. What this does, is it adds Oracle's repository to your system so you can install Java straight from the terminal.

Now you need to update your repositories. You do that by entering:

sudo apt-get update

After you have updated all of your repositories, now you can install Java. Now you just have to enter:

sudo apt-get install oracle-java7-installer

Now you'll be prompted with a message, press enter, now press the left arrow key, and press enter again. The terminal will run for a while, and when it's complete you can exit out. I hope this tutorial helped everyone out. I remember when I first started out on Linux, no one had a tutorial on how to do this the proper way.
Рекомендации по теме
Комментарии
Автор

It works fine for me....running elementaryOS

dvp_on_YT
Автор

when I do: sudo apt-get install oracle-java7-installer

it says unable to locate package oracle-java7-installer

FlipsLaw