Change the Java version (Minecraft)

Fix the “Unsupported Java Version” error by choosing a Java image that suits your Minecraft version.

Getting started with the panel Updated 1 min read

Minecraft Java needs a specific Java version to start. If it does not match, the console shows an error such as Unsupported Java Version or UnsupportedClassVersionError.

Minecraft version Java required (guideline)
1.16.5 and earlier Java 8 (or 11)
1.17 to 1.20.4 Java 17
1.20.5 to 1.21.x Java 21
Most recent versions Java 21 or newer: check the version announcement
  1. Stop the server

    Red button.

  2. Open Startup

    Docker Image block.

    Docker image selector
    The Docker image selector (2) lists the available Java versions.
  3. Choose the Java version

    Select the right version in the list.

  4. Start and check

    Read the console: the error message should no longer appear.

If none of the versions offered suits your Minecraft version, open a ticket: we will adjust your server’s environment.

Need a hand?

The Koinswift team answers 7 days a week, by ticket from your client area or on Discord.