Java 9 on Debian stretch
mouse 2440 · person cloud · link
Last update
2018-02-27
2018
02-27
« — »

Debian JavaPackage does not currently support JDK 9, but we can use the useful script/packages made by WebUpd8 team.

Create the repository file:

1
2
3
# /etc/apt/sources.list.d/webupd8team-java.list
deb     http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main

add its key and install the JDK package auto installer:

1
2
3
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt update
apt install oracle-java9-installer

Source: Tecadmin.net, WebUpd8 ubuntu team and blog post