# 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="/files/cjH8zJfA8VXee3IetHyI" alt=""><figcaption></figcaption></figure>

4. Start your server!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fourseasonshosting.com/docs/game-knowledge-base/minecraft/managing-your-server/which-java-version-to-use-for-minecraft-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
