Skip to content

4.0.0-beta images are failing due to wrong JDK version #142

@rot9mu

Description

@rot9mu

Proposal

At the docker image the JAVA_VERSION=jdk-11.0.24+8 is used. But wiremock has been compiled with a newer version (min. Java 17), so the image is failng with this error: java.lang.UnsupportedClassVersionError

Reproduction steps

Running the doker image failes with following error:

docker run -it --rm -p 8080:8080 --name wiremock wiremock/wiremock:4x-beta
Unable to find image 'wiremock/wiremock:4x-beta' locally
4x-beta: Pulling from wiremock/wiremock
Digest: sha256:7ee0a53c479043425775d7766e63a0ff4f29ad4710551bb3ab62792e25aa15c8
Status: Downloaded newer image for wiremock/wiremock:4x-beta
Error: LinkageError occurred while loading main class wiremock.Run
java.lang.UnsupportedClassVersionError: wiremock/Run has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions