HowTo: Install Java
Java is often not installed by default and is not always straightforward to install, so we shall present how to install it on a number of operating systems.
JDK or JRE?
If you only want to run Java programs, just the JRE (Java Runtime Environment) is necessary. If you want to develop Java programs, the JDK (Java Development Kit) is required.