This articles gives the exact steps needed to install jdk on debian based linux distributions… really helpful..