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
Guides

Guide

Minecraft server Java 25 error fix

Learn how to resolve Java 25 compatibility errors on your Minecraft server. Follow our guide to ensure your server version matches your Java runtime.

AwakeNode Team · Reviewed by Harry · Updated 15 Oct 2026

Understanding Java 25 Compatibility

Minecraft servers require specific Java versions to run correctly. As newer versions of Java (such as Java 25) are released, older Minecraft server versions may encounter compatibility errors. These errors typically manifest as a UnsupportedClassVersionError or a failure to boot, as the server software was compiled for an older Java runtime.

Checking Your Current Java Version

Before attempting a fix, you must identify which Java version your server is currently using.

On AwakeNode

Navigate to your server's console in the AwakeNode panel. The startup log will display the Java version currently in use. If you need to switch to a different version, use the Startup tab to select a compatible server type, or open a Support ticket if you require a specific runtime environment.

On other hosts

Run the command java -version in your server's terminal or command prompt. If you are managing your own VPS, you may need to update your environment variables or install a specific OpenJDK version (such as Java 17 or 21) to match your server's requirements.

Resolving Startup Errors

If your server is crashing due to a Java version mismatch, follow these steps:

  1. Verify Server Requirements: Check the official documentation for your server software (Paper, Fabric, or Forge). For example, Minecraft 1.20.x generally requires Java 17, while 1.21+ requires Java 21.
  2. Update Server Software: Ensure you are running the latest build of your server software. Newer builds often include support for updated Java runtimes.
  3. Adjust Startup Flags: If you are on a manual host, ensure your startup script points to the correct Java executable.

*To add your own JVM flags, set a custom startup command in your server's Startup tab.

Upgrading Your Plan

Sometimes, Java errors are exacerbated by insufficient resources. If your server is struggling to initialize the Java Virtual Machine due to memory constraints, consider upgrading your plan. On AwakeNode, upgrading your plan automatically updates your Xmx memory allocation, ensuring your server has the overhead required to run modern Java environments without manual configuration.

Questions

On this page

  • Understanding Java 25 Compatibility
  • Checking Your Current Java Version
  • Resolving Startup Errors
  • Upgrading Your Plan

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

Why am I getting an UnsupportedClassVersionError?+

This error occurs because your server software was compiled with a newer version of Java than the one currently installed on your host.

Can I change my Java version on AwakeNode?+

You can use the Startup tab to update your server type, which often aligns your Java version. For specific runtime requirements, please open a support ticket.

Do I need to edit my startup flags to fix Java errors?+

To add your own JVM flags, set a custom startup command in your server's Startup tab.

Which Java version should I use for Minecraft 1.21?+

Minecraft 1.21 and newer versions typically require Java 21 to function correctly.

More guides

The Top 10 Fabric Optimization Mods to Boost Server TPSBoost your Minecraft server's performance with our curated list of the top 10 Fabric optimization mods, designed to improve TPS and reduce lag.Best optimization mods Fabric 2026Boost your Minecraft Fabric server performance in 2026. Learn which optimization mods provide the best FPS and TPS gains for your AwakeNode server.How to Monetize Your Minecraft Server Without Breaking the EULALearn how to monetize your Minecraft server while staying compliant with Mojang's EULA. Discover acceptable donation models and avoid common pitfalls.Why Your Minecraft Server is Lagging (And How to Fix It)Experiencing Minecraft server lag? Learn how to identify the cause, from plugin bloat to hardware limits, and how to optimise your server performance today.