> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# What Version Of Java Do You Need For A Minecraft Server?

Running a Minecraft server? Then knowing what Java version you need isn’t just helpful—it’s essential. Each specific Minecraft version comes with its own Java version requirements, and skipping this step can lead to frustrating errors, unstable worlds, or even an unlaunchable .jar file.

Whether you're setting up a Java Edition server for the first time or upgrading to the latest version, this guide will show you what version of Java do you need for Minecraft server, and how to install the latest Java version or desired version for your server in no time!

Don't already host with us? 10,000+ server owners trust Sparked Host for lag-free Minecraft worlds. [Claim your server savings](https://sparkedhost.com/minecraft-server-hosting?utm_source=referral&utm_medium=knowledge_base&utm_campaign=kb_redirect&utm_content=intro) to get higher performance at less $ per month.

## Recommended Java Versions

Different Minecraft versions have different minimum Java version requirements. Below are the recommended Java versions for each version of Minecraft:

### Minecraft 1.20 and Above

The recommended Java version for Minecraft versions 1.20 and above is Java 17.

### Minecraft 1.18 to 1.19.4

The required Java version for Minecraft 1.18 to 1.19.4 is Java 17.

### Minecraft 1.17

The recommended Java version for Minecraft 1.17 is Java 16.

### Minecraft 1.12 to 1.16.5

The recommended Java version for Minecraft 1.12 to 1.16.5 is Java 8.

### Minecraft 1.7.10 and Below

The recommended Java version for Minecraft 1.7.10 and below is Java 7, or Java 8.

## How to Change Minecraft Server Java Version

To change the Java Version of your Minecraft server:

* Log in to your [Apollo Panel](https://control.sparkedhost.us/)
    
* Navigate to the “Startup” tab under the Configuration category.
    
    ![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/image2_1t9in9f.png)
* After that, you should see a Java Version box beside the Startup Command field.
    
    ![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/image1_fu7dlh.png)
* Select the suitable Java Version according to your Minecraft server version and the option will be auto saved.
    
    ![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/image3_1wkkjke.png)
* Lastly, to make the update to the Java version effective, don't forget to restart the server.

## Still have some questions about setting up Java on your Minecraft server?

If you need any further help, you can file a ticket [here](https://billing.sparkedhost.com/submitticket.php), and we'll answer right away!