How to Change the Java Version on Your Minecraft Server at Hostinger

Changing Java version on your Minecraft server via Game Panel at Hostinger

Updated 2 weeks ago

The following error message in the Console may be cause to switch to a different Java version:

Exception in thread "main" java.lang.IllegalAccessError: class cpw.mods.modlauncher.SecureJarHandler (in unnamed module @0x2a79781f) cannot access class sun.security.util.ManifestEntryVerifier (in module java.base) because module java.base does not export sun.security.util to unnamed module @0x2a79781f

You can easily change it by double-clicking the instance to Manage it:

Minecraft server panel with the Running status highlighted at the top right

Then, select Configuration and scroll down to select Minecraft:

Hostinger Minecraft menu with the Minecraft option highlighted

Finally, specify the needed version in the Java and Memory section:

Minecraft server panel showing the highlighted Java and Memory tab and Java version dropdown with Temurin 21 selected

You can choose between various Java versions in case a Minecraft plugin or server JAR requires a special environment 😊