
// Allow GitHub image rendering
:imagesdir: ../../images

[[gi-install-oracle-java-debian]]
=== Setup on _Debian-based_ systems

This section describes how to install _Oracle Java 8_ on a _Debian-based_ system like _Debian 8_ or _Ubuntu 14.04 LTS_.

.Install add-apt-repository package
[source, bash]
----
apt-get install -y python-software-properties
----

.Add Java repository from webud8 maintainer
[source, bash]
----
add-apt-repository ppa:webupd8team/java
apt-get update
----

.Install Oracle Java 8 installer
[source, bash]
----
apt-get install -y oracle-java8-installer
----


// Allow GitHub image rendering
:imagesdir: ../../images

[[gi-install-oracle-java-debian]]
=== Setup on _Debian-based_ systems

This section describes how to install _Oracle Java 8_ on a _Debian-based_ system like _Debian 8_ or _Ubuntu 14.04 LTS_.

.Add Java repository from webupd8 maintainer
[source, bash]
----
su -
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
----

.Add repository key server and update repository
[source, bash]
----
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
----

.Install Oracle Java 8 installer
[source, bash]
----
apt-get install -y oracle-java8-installer
----

Fix Oracle Java install guide
NMS-8097: Fix Oracle Java install guide

It is not possible since Java 1.8.0 b72 to install with add-apt-repository.
Updated the install guide to create source.list file manually.
