Instaling Oracle JDK on Debian based linux

This is the most convenient way to install and manage Orcale JDK distribution on Debian based Linux. It is simple there is public deb repository containing all the necessary packages. Note that those packages are built against Ubuntu. However It should work in this case even on Debian.

Simply go to provided page and follow instructions.

This method has several advantages
1. It is easy and fast to setup
2. You have the latest updates via system package manager.
3. You don't rely on various gimmicks which do not configure Oracle JDK  properly as default Java implementation in system anyway.

One draw back
It is third party repository, therefore in theory potential security risk.