...
- Add jessie-backports repository to your apt configuration:
echo "deb http://ftp.de.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
- Update apt sources:
aptitude apt-get update
- Install OpenJDK 8:
aptitude install apt-get install -t jessie-backports openjdk-8-jre-headless ca-certificates-java - Configure OpenJDK 8 as default:
update-alternatives --config java
and enter the number for selection belonging to version 8
...