# 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      |

{% hint style="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.
{% endhint %}

### How to change Java version for your server

1. Access your server from the [gamepanel](https://gamepanel.fourseasonshosting.com/)

2. From the left side of the panel, open the **Startup tab**.

3. Select the appropriate Java version from the **Docker image** area.

<figure><img src="https://117306917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNMJyT1j9vuQnp7boSnoR%2Fuploads%2Fr1MvKJcNglmoPHMtLdcB%2Fimage.png?alt=media&#x26;token=9758c703-4531-42f6-969a-95cc2889930f" alt=""><figcaption></figcaption></figure>

4. Start your server!
