How to Change Your Minecraft Server Java Version

Learn how to change the Java version on your Minecraft server for compatibility with specific mods and versions.

Different Minecraft versions require different versions of Java to run properly. By default, the XGamingServer panel automatically detects and uses the correct Java version, but some modpacks or older server versions may need a specific Java version to start up without errors.

Changing Java Version

Access the panel

Go to the XGamingServer panel and select your Minecraft server.

Open Startup settings

In the sidebar, go to Startup.

Select a Java version

Find the Java Version dropdown and select the version you need.

Start your server

Start your server with the new Java version.

Screenshot: Java Version selector in Startup

💡 Tip: Leave Java Version set to Automatic unless you have a specific reason to change it. The auto-detection works for 99% of cases, including most modpacks.

Java Version Compatibility

Minecraft VersionRequired Java
1.16.5 and olderJava 8
1.17 - 1.17.1Java 16 or 17
1.18 - 1.20.4Java 17
1.20.5+Java 21

📝 Note: If your server crashes immediately after starting and the console mentions a Java error, this is usually the first thing to check. See our Troubleshooting guide for more help with startup issues.

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page