When you install the JDK, or the Java Development Kit, you are installing everything that the JRE has, but you are also installing the compiler javac , which is capable of compiling Java programs . These compiled Java programs can then be run in the Java Runtime Environment.