Skip to content

fix(docker): run on Java 25 base (fixes UnsupportedClassVersionError)#10

Merged
mjfelis merged 1 commit into
mainfrom
fix/jvm25-runtime
Jun 3, 2026
Merged

fix(docker): run on Java 25 base (fixes UnsupportedClassVersionError)#10
mjfelis merged 1 commit into
mainfrom
fix/jvm25-runtime

Conversation

@mjfelis

@mjfelis mjfelis commented Jun 3, 2026

Copy link
Copy Markdown
Member

Problem

Same Java-version mismatch as stats: the app compiles to Java 25 (maven.compiler.release=25, built with temurin-25) but src/main/docker/Dockerfile.jvm ran on ubi8/openjdk-17. Java 17 can't load class file version 69.0 (Java 25), so the container would crash at startup with UnsupportedClassVersionError.

Fix

Bump the runtime base to registry.access.redhat.com/ubi9/openjdk-25:1.24 (same as pm-model).

The app and its dependencies are compiled for Java 25 (maven.compiler.release=25,
built with temurin-25), but Dockerfile.jvm ran on ubi8/openjdk-17. Java 17 cannot
load class file version 69.0, so the container crashed at startup with
UnsupportedClassVersionError. Bump the runtime base to ubi9/openjdk-25:1.24
(same as pm-model).
@mjfelis mjfelis merged commit 0da899d into main Jun 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant