Which Java version to use for Minecraft server?

Minecraft servers run on Java, and each version of Minecraft requires a compatible Java version. Using the wrong Java version may prevent the server from starting or cause plugins, mods to fail during startup.

Java Version List

Minecraft Version
Java Version

1.16.5 and below

Java 8

1.17

Java 16

1.18 to 1.20.4

Java 17

1.20.5 and above

Java 21

circle-info

Some plugins or mods may require a newer Java version than the base Minecraft version. Always follow the Java version specified by the mod or plugin developer if one is listed.

How to change Java version for your server

  1. Access your server from the gamepanelarrow-up-right

  1. From the left side of the panel, open the Startup tab.

  1. Select the appropriate Java version from the Docker image area.

  1. Start your server!

Last updated

Was this helpful?