Skip to content
Try a Minecraft server free. No card needed.48 hours free
AwakeNode
Find my serverMinecraft plansFree trialPay-to-PlayWikiSupport
Legacy billingClient DashboardView plans
Error fixes

Error fix

java.lang.UnsupportedClassVersionError

Learn how to resolve the java.lang.UnsupportedClassVersionError on your Minecraft server by matching your Java version to your server's requirements.

AwakeNode Team · Reviewed by Harry · Updated 15 Oct 2026

Understanding the Error

The java.lang.UnsupportedClassVersionError occurs when you attempt to run a compiled Java class file using an older version of the Java Runtime Environment (JRE) than the one used to compile it. In the context of Minecraft, this usually means your server software (like Paper or Forge) requires a newer version of Java than the one currently active on your instance.

How to fix it

On AwakeNode

Our panel handles Java versions automatically based on the Minecraft version you select. If you encounter this error, it is likely because your server version needs an update.

  1. Navigate to the Startup tab.
  2. Select the latest version of your preferred server type (e.g., Paper or Forge).
  3. Click Apply to update your server files and the associated Java environment.
  4. If the error persists, open a Support ticket so our team can verify your startup parameters.

On other hosts / manually

If you are managing your own environment, you must ensure your system's Java version matches the requirements of your server software:

  1. Check your current version: Run java -version in your terminal or command prompt.
  2. Identify requirements: Check the documentation for your specific Minecraft version (e.g., Minecraft 1.20+ requires Java 17 or 21).
  3. Update Java: Install the required JDK/JRE version on your host machine.
  4. Update Startup Script: Ensure your startup command points to the correct Java executable. If you are using a custom startup script, verify the -Xmx and path variables are correctly configured for the new Java installation.

Questions

Why does this error happen?+

It happens because your server software was compiled with a newer version of Java than the one currently installed on your server.

Start a Minecraft server

Java or Bedrock, vanilla or modded, with a console, file manager and backups.

See plans
AwakeNode

Minecraft server hosting in UK or EU locations. Built by players, for players.

Open a support ticket

Minecraft

  • Minecraft plans
  • Modpack servers
  • Pay-to-Play with friends
  • 48-hour free trial
  • Common questions

Support

  • Wiki and guides
  • Client Dashboard
  • Open a support ticket
  • Legacy game panel (existing servers)
  • Legacy billing (existing accounts)

Company

  • Contact us
  • VPS hosting
  • Terms of service
  • Privacy policy
  • Uptime SLA

AwakeNode is a trading name of Falcon Hosting Ltd.
© 2026 Falcon Hosting Ltd.

Registered in England & Wales · Company No. 15676555 · ICO registration ZB377567
Registered office: Anglo Dal House, 5 Spring Villa Park, Spring Villa Road, Edgware, Middlesex, HA8 7EB, United Kingdom

Can I fix this by changing my RAM settings?+

No, this error is related to the Java version, not the amount of memory allocated to your server.

What Java version do I need for modern Minecraft?+

Minecraft 1.17 and 1.18 require Java 17, while 1.20.5 and newer versions require Java 21.

Do I need to edit my startup flags to fix this?+

On AwakeNode, you do not need to edit flags manually. If you are on another host, you may need to update the path to your Java executable in your startup script.

More error fixes

java.lang.NoClassDefFoundError / ClassNotFoundExceptionLearn how to resolve java.lang.NoClassDefFoundError and ClassNotFoundException errors on your Minecraft server with our step-by-step troubleshooting guide.java.lang.NoSuchMethodError / NoSuchFieldErrorLearn how to resolve java.lang.NoSuchMethodError and NoSuchFieldError on your Minecraft server by identifying version mismatches and plugin conflicts.Exception in server tick loopLearn how to diagnose and resolve the 'Exception in server tick loop' error on your Minecraft server with our step-by-step troubleshooting guide.java.net.SocketException: Connection resetTroubleshoot the java.net.SocketException: Connection reset error on your Minecraft server. Learn how to diagnose network and client-side issues.