OpenJDK is available for Debian 8 via backports. Thus if you wish to use OpenJDK 8, install ODN as described in Installation and Upgrade Manual and then:
- 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 update
- Install OpenJDK 8:
aptitude install openjdk-8-jre-headless
- Configure OpenJDK 8 as default:
update-alternatives --config java
and enter the number for selection belonging to version 8