I installed Debian 8, I would like to install Java JRE and JDK. I use this method and it works.
But, I am afraid because it's a script hosted in a repository. I would like to understand why it doesn't work when I put the extract of this JRE in /usr/java/jre1.8.0_73
directory as per the documentation. I added the path variable with PATH=/usr/local/jdk1.8.0/bin:$PATH export PATH
as explained in this doc but it doesn't work.
Even if I try to install OpenJDK, the package isn't found. I don't understand why it's so complicated to install Java on Debian; it is very simple on Ubuntu. I would like someone give me step-by-step instructions to install it.