JDK (Java Development Kit)

The JDK is the full toolkit you install to write and build Java programs. It includes the compiler (javac), the runtime (JRE), and developer tools, so it's everything you need to develop Java software.

Java

Think of the JDK as a superset: it contains the JRE (which runs Java) plus the tools needed to create Java (compiler, debugger, and more). To merely run a Java app you only need a JRE, but to write one you need the JDK.

Common JDK distributions include Oracle JDK, OpenJDK, and Amazon Corretto.

Examples

Java

// Tools provided by the JDK, run in a terminal:
// javac Main.java   (compile)
// java Main         (run)
// jshell            (interactive REPL)

Learn it in a lesson

See also

Back to the Dictionary