java.lang.NoClassDefFoundError / ClassNotFoundException

Learn how to resolve java.lang.NoClassDefFoundError and ClassNotFoundException errors on your Minecraft server with our step-by-step troubleshooting guide.

By AwakeNode Team Reviewed by harry Updated 15 June 2026

Understanding the Error

java.lang.NoClassDefFoundError and java.lang.ClassNotFoundException are common Java errors that occur when the server attempts to load a class that is missing from the classpath. In the context of a Minecraft server, this usually means a plugin, mod, or library file is either corrupted, incompatible with your server version, or missing a required dependency.

How to fix it

1. Check for missing dependencies

Many plugins require other plugins (like Vault or ProtocolLib) to function. If you have installed a plugin without its required dependencies, the server will fail to load the class.

  • On AwakeNode: Use the File Manager to inspect your plugins folder. Ensure all required dependencies are present and match the versions specified by the plugin developer.
  • On other hosts: Use an SFTP client like FileZilla to browse your server files and verify that all dependency JAR files are present in the plugins or mods directory.

2. Verify plugin and mod compatibility

Using a plugin or mod designed for a different Minecraft version often leads to class errors. Ensure every file in your plugins or mods folder is compatible with your current server version.

  • On AwakeNode: Use the Plugin Installer or Mod Installer to ensure you are using the correct, verified versions for your server type.
  • On other hosts: Manually download the correct versions from official sources (SpigotMC, Modrinth, or CurseForge) and replace the incompatible files.

3. Clear corrupted files

Sometimes a file can become corrupted during an upload or update.

  • On AwakeNode: Delete the problematic plugin or mod via the File Manager and re-upload a fresh copy.
  • On other hosts: Delete the JAR file from your server directory and upload a fresh copy using SFTP.

4. Contact Support

If you have verified your files and the error persists, it may be related to the Java environment or startup configuration.

  • On AwakeNode: Open a Support ticket. Our team can check the server logs and ensure your startup flags are configured correctly for your specific environment.
  • On other hosts: Check your startup script for incorrect classpath definitions or contact your hosting provider's support team.

Frequently asked questions

Related guides

Ready to host your Minecraft server?

Spin up a high-performance UK server in seconds - AMD Ryzen, NVMe, DDoS protection, and 24/7 support from £1/mo.