Customization with Minecraft - Adding Temurin Java 20 to Minecraft Server config

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Decadeus’ v2.4.6.4 (Mainline)
Virtualization Docker
Application Minecraft
Module MinecraftModule
Running in Container Yes
Current State Stopped

Problem Description

Issue

Is there a way to add later versions of Java to a Minecraft server instance? The latest one that is available by default is Java 18.

Reproduction Steps

  • Create new Minecraft Java instance
  • Go to Java configuration menu
  • View available Java versions

It’s not recommended to use very recent versions of the Java runtime, as they may not work as intended (last I checked Java 21 was giving MC some issues, so your mileage may vary)
Plus there isn’t really any reason to use the newest one.

However, if you insist, you’ll need to disable Docker if you have it active for that instance, then download and install Java 20, then stop/start the instance to update the list of Java runtimes.

1 Like