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.

💡 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 Version | Required Java |
|---|---|
| 1.16.5 and older | Java 8 |
| 1.17 - 1.17.1 | Java 16 or 17 |
| 1.18 - 1.20.4 | Java 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?

How to Change Your Minecraft Server Difficulty
Learn how to change the difficulty on your Minecraft server between Peaceful, Easy, Normal, and Hard. Includes detailed differences and recommendations.
How to Change the World Type on Your Minecraft Server
Learn how to change the world type to flat, large biomes, amplified, or other presets.