Image Tags
Image references can either omit the tag (which defaults tolatest) or explicitly specify a tag:
Available Java Versions
| Tag | Java Version | Linux | JVM Type | Architecture | Notes |
|---|---|---|---|---|---|
latest | 25 | Ubuntu | Hotspot | amd64, arm64 | Default |
stable | 25 | Ubuntu | Hotspot | amd64, arm64 | Most recent release |
java25 | 25 | Ubuntu | Hotspot | amd64, arm64 | |
java25-jdk | 25 | Ubuntu | Hotspot+JDK | amd64, arm64 | |
java25-graalvm | 25 | Oracle | Oracle GraalVM | amd64, arm64 | |
java21 | 21 | Ubuntu | Hotspot | amd64, arm64 | |
java21-jdk | 21 | Ubuntu | Hotspot+JDK | amd64, arm64 | |
java21-alpine | 21 | Alpine | Hotspot | amd64, arm64 | |
java21-graalvm | 21 | Oracle | Oracle GraalVM | amd64, arm64 | |
java17 | 17 | Ubuntu | Hotspot | amd64, arm64, armv7 | |
java17-graalvm | 17 | Oracle | Oracle GraalVM | amd64, arm64 | |
java11 | 11 | Ubuntu | Hotspot | amd64, arm64, armv7 | |
java8 | 8 | Ubuntu | Hotspot | amd64, arm64, armv7 |
The
latest tag shifts to include not only the latest features and bug fixes, but also the latest Java version that Mojang requires for the latest Minecraft version.Usage Examples
Version Compatibility
Refer to the Minecraft Wiki’s Java update guide for the required Java version for each vanilla Minecraft version.Common Compatibility Issues
Class File Version 65.0
If you encounter this error, you need Java 21 or later:Forge Compatibility Issues
Forge and its mods sometimes use non-public Java APIs and can break with newer Java versions. Java 21 Issues: Some mods for Minecraft 1.21 require Java 17. If you see:java8:
Forge does not support the OpenJ9 JVM implementation.
Release Versions
You can pin a specific build of the image using release tags:Stable Image Tag
Thestable tag combines benefits of latest and release versions:
GraalVM Images
GraalVM images are based on Oracle GraalVM and use the GraalVM Free License.Alpine Images
Alpine-based images provide a smaller footprint:Alpine images for Java 17 do not include arm64 architecture because the base Eclipse Temurin images don’t provide that combination. Use Ubuntu-based images instead.
Troubleshooting
Class File Version Errors
If you see “class file version” errors, refer to the Java bytecode version table to identify the required JDK version.| Class File Version | Java Version |
|---|---|
| 65.0 | Java 21 |
| 61.0 | Java 17 |
| 55.0 | Java 11 |
| 52.0 | Java 8 |