Install Java 8 on Debian 8 (Jessie)

java jre download link

Download Linux x64 from https://www.java.com/en/download/ and perform commands below from root or sudo:

tar xzvf jre-8u291-linux-x64.tar.gz
mv jre1.8.0_291 /usr/lib/jvm/jre1.8.0_291
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.8.0_291/bin/java 1 
java -version
update-alternatives --config java