JDK is a superset of JRE and contains everything in JRE. JRE provides the libraries, the Java Virtual Machine (JVM), and other components to run applets and applications written in the Java programming language.