The “WebUpd8” team fortunately take care of some Packages that will make your life a little bit easier. In this case the Oracle Java (JDK) Installer!
First we need to add the WebUpd8 repository to our /etc/apt/sources.list
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list
Then we get the Keys:
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
Lets update the new repositories
apt-get update
And thats it, now we can install Java with one simple apt-get
apt-get install oracle-java8-installer
Problems with the JAVA_HOME enviroment?
Take a look at http://stackoverflow.com/questions/29269829/webupd8-java-home-not-set-after-installing-oracle-java8-set-default
No Responses