How to Change the Java Version on a Minecraft Java Server

Learn how to switch the Java version on your Minecraft Java server using the RiverHosting panel, so your server runs the right version for your chosen Minecraft release.
Different versions of Minecraft Java Edition require different versions of Java to run correctly. For example, Minecraft 1.16 and older versions need Java 8, versions around 1.17 need Java 16, 1.18 to 1.20.4 need Java 17, and newer versions need Java 21 or Java 25. If your server is using the wrong Java version, it may fail to start or produce errors in the console.
The good news is that you can change the Java version directly from the RiverHosting panel without any technical knowledge. This guide walks you through exactly how to do it.
Before you start
- You need an active Minecraft Java Edition server on RiverHosting.
- Log in to the panel at panel.riverhosting.com before following these steps.
- Make sure your server is stopped before changing the Java version. Changing it while the server is running may cause issues.
- If you are not sure which Minecraft version you are running, check the Console tab when your server starts. It displays the version near the top of the output.
Minecraft 1.8 to 1.16: Java 8. Minecraft 1.17: Java 16. Minecraft 1.18 to 1.20.4: Java 17. Minecraft 1.20.5 to 1.25.x: Java 21. Minecraft 26.1 and newer: Java 25.
1. Stop your server
Before making any changes, stop your server to avoid conflicts.
- Log in to the panel at panel.riverhosting.com.
- Select your Minecraft Java server from the server list.
- On the main Console page, click the Stop button.
- Wait until the server shows a stopped or offline status before continuing.
Changing the Java version while your server is running can cause it to crash or behave unexpectedly. Always stop the server first.
2. Open the Startup settings
The Java version setting is found inside the Startup section of your server.
- In the SERVER section of the left-hand menu, click Settings, then the Startup tab at the top of the page.

- Look for the card labelled Java Version. It sits separately from the startup variables.
The Startup page shows configuration options that control how your server launches. The Java Version card shows a Current badge on the Java version your server uses now and a Recommended badge on the one that suits your Minecraft version.
3. Change the Java version
- Find the Java Version card on the Startup page.
- Select the Java version that matches your Minecraft version. If you are unsure, pick the one marked Recommended. Common options include:
8for Minecraft 1.8 to 1.1616for Minecraft 1.1717for Minecraft 1.18 to 1.20.421for Minecraft 1.20.5 to 1.25.x25for Minecraft 26.1 and newer
- Click Save Changes. The new Java version is only applied after you save. If the server is running, the panel then offers a restart.

Using the wrong Java version will prevent your server from starting. If you are unsure which version to use, pick the Recommended one or contact RiverHosting support. When you change your Minecraft version on the Versions page, the panel also asks you to switch Java if needed ("Java Version Change Required").
4. Restart your server and confirm it works
- Go back to Console in the left-hand menu.
- Click the Start button to start your server.
- Watch the console output as your server loads. It will display information about the Java version it is using near the top of the startup log.
- If the server starts successfully and reaches the "Done" message in the console, your Java version is correctly configured.
If you see a line in the console that says something like "Done! For help, type help", your server is running correctly with the new Java version.
Troubleshooting
- Server fails to start after changing Java version: Make sure you clicked Save Changes, then double-check that the Java version you selected matches your Minecraft version. Refer to the quick reference tip earlier in this article.
- Console shows a Java error message: This usually means there is a mismatch between your Java version and your Minecraft or server software version. Try selecting a different Java version in the Startup settings.
- The Java Version card is missing from Startup: The card only appears on Minecraft Java servers. If your server is one and you still do not see it, contact RiverHosting support.
- Server starts but players cannot connect: This is usually unrelated to the Java version. Check that your server address and port are correct, and that the server has fully finished loading in the console before connecting.
- You are not sure which Minecraft version you are running: Check the Console tab when the server starts. The version number appears in the first few lines of the startup output.
Need help?
If you are stuck or your server is not starting after following these steps, the RiverHosting support team is happy to help. You can reach them at any time through the support page.
Visit riverhosting.com/support to open a ticket or chat with the team. Let them know what Minecraft version you are running and what error you are seeing, and they will get you sorted out quickly.
Similar Articles
How to Upgrade or Downgrade Your Minecraft Java Server Version
Learn how to safely change your Minecraft Java server version using the RiverHosting panel, whether you want to update to the latest release or roll back to an older one.
How to Switch Your Icarus Server Between the Default and Experimental Branch
Learn how to switch your Icarus server between the Default and Experimental branch from the RiverHosting panel so your server version matches your players and everyone can join.
How to Upgrade Your Core Keeper Server to a New Version
Learn how to update your Core Keeper server to the latest version from the RiverHosting panel so your players can always connect and enjoy new content.