Java on Linux

Debian

To Install

apt-get install default-jre
apt-get install default-jre-headless

Debian 8.8 (Jessie)

openjdk-7 or openjre-7 is supported by default. JDK 8 is not supported.

Ubuntu

Ubuntu 16.04 LTS

It supports Java 9 and 8.

Search example:

apt-cache search jre

Example installation:

apt-get install default-jre-headless

which installs openjdk-8-jre-headless.