JDK
The Java Development Kit: the Java runtime plus the tools that build programs, such as the compiler javac, the disassembler javap and the jar tool.
In more detail
JDK stands for Java Development Kit. You install a JDK on a developer machine and in the build stage of a container image, because that is where compiling happens. Many vendors build the JDK from the same OpenJDK source code, for example Eclipse Temurin, Oracle and Amazon Corretto. The first number of its version, such as 21, is the feature release.
Examples
javac -version # javac 21.0.12.1FROM eclipse-temurin:21-jdk AS buildRelated terms
- JRE — The JVM plus the Java standard library: everything needed to run a compiled Java program, but no compiler.
- JVM — The program that loads class files and runs their bytecode, turning hot code into native machine instructions while it runs.
- javac — The Java compiler command, which reads .java source files and writes one .class file per class.
- javap — The JDK tool that prints what a class file contains, including its bytecode with -c and its class file version with -v.
- jar tool — The JDK command that creates, lists and extracts JAR files, like a zip tool that understands manifests.
- OpenJDK — The open-source project that develops the Java platform, and the source code most JDK builds are made from.
- Eclipse Temurin — A free, widely used JDK distribution built from OpenJDK by the Eclipse Adoptium project, also published as official container images.
Taught in
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- Release Trains And Long Term Support — Modern Java: Virtual Threads & High-Throughput Services
- The Toolchain: Gradle — Modern Java: Virtual Threads & High-Throughput Services
- Packaging Into A Container — Modern Java: Virtual Threads & High-Throughput Services
- Jars, Automatic Modules And Runtime Images — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep