JRE
The JVM plus the Java standard library: everything needed to run a compiled Java program, but no compiler.
In more detail
JRE stands for Java Runtime Environment. Oracle stopped offering a separate JRE download after Java 8, but vendors such as Eclipse Adoptium still publish runtime-only builds and container images, such as the eclipse-temurin 21-jre tag. A runtime image is smaller than a JDK image and contains no compiler for an attacker to misuse, which is why the final stage of a container build usually starts from one.
Example
FROM eclipse-temurin:21-jre # the run stage of the course DockerfileRelated terms
- JVM — The program that loads class files and runs their bytecode, turning hot code into native machine instructions while it runs.
- 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.
- Java class library — The large set of ready-made classes every Java program can use without adding a dependency, such as String, List, Optional and Thread.
- multi-stage build — A Dockerfile with several FROM stages, where later stages copy only what they need from earlier ones.
Taught in
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- Packaging Into A Container — Modern Java: Virtual Threads & High-Throughput Services