Skip to content

Failure to run with Docker because of different Java Runtime version #60

@nichtich

Description

@nichtich

I've build the jar file with gradle and get the follwoing error message when running with Docker:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/semantics/apigateway/APIGatewayApplication has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

I suppose the local Java version (openjdk 21.0.6) and the Java listed in Dockerfile (17?) must match.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions