How to install Java on two major Linux distributions.