How to fix incompatible Java version issue
15/09/2024
22:53
Have you tried to start your server and encountered the following error?
> container@pterodactyl~ java -Xms128M -Xmx8192M @libraries/net/minecraftforge/forge/1.20.1-47.2.21/unix_args.txt
> You are attempting to run with an unsupported Java Virtual Machine : Eclipse OpenJ9 VM
> Please visit https://adoptopenjdk.net and install the HotSpot variant.
> OpenJ9 is incompatible with several of the transformation behaviours that we rely on to work. Exception in thread "main" java.lang.IllegalStateException: Open J9 is not supported
Don't worry, we'll help you fix it!
Access your LuraHosting control panel and click on Startup
Then search for DOCKER IMAGE and click on the checkbox
By default, your server is configured to use the java_18J9 option , however, for some specific mods or plugins it is not compatible and ends up showing the error message to the user, so, to fix the problem, change to the version you want without J9 at the end.
BEFORE:
WITH THE PROBLEM FIX:
For older versions of Minecraft, use the following versions to get your server to start normally:
Minecraft 1.5.2+ - Java_8 / Java_8J9
Minecraft 1.12.2+ - Java_11 / Java_11J9
Minecraft 1.16.0+ - Java_17 / Java_17J9
Minecraft 1.18.0+ - Java_18 / Java_18J9
Minecraft 1.21+ - Java 21 / Java_21J9
Always choose the Java version ending in J9 as it contains greater optimizations for Minecraft. However, if the error addressed in this tutorial appears, use the version that does not contain the acronym.