30% OFF your first order · new customers
Minecraft background

How To Change Your Minecraft Server Java Version

Learn how to change the Java version on your Minecraft server to support specific modpacks or performance needs.

Some Minecraft versions and modpacks require a specific version of Java, otherwise they won't start. Here's how to change the Java version on your Minecraft server.

Changing Java Version

  1. Access the GhostCap Panel and select your Minecraft server.
  2. Go to File Manager.
  3. Open the docker_overwrite file.
  4. The file contains your current Java version, such as Java 8. Replace it with the version you need, using the same format. For example, change Java 8 to Java 21.
  5. Click Save, then Restart your server.

Which Java Version Do I Need?

Minecraft VersionJava Version
26.1 and newerJava 25
1.20.5 to 1.21.xJava 21
1.17 to 1.20.4Java 17
1.16.5 and olderJava 8
Tip

If a modpack lists a required Java version, use that instead. You can change the Java version at any time without affecting anything on your server.