NYXONYXO JAR
Home / Troubleshooting

Troubleshoot Minecraft Plugin and Mod Builds

Did a build fail, or did the plugin not load? Find the first useful error in the log and compare it with these common causes.

Troubleshoot Minecraft Plugin and Mod Builds — NYXO JAR

Open the build log and find the first line marked ERROR. The last line is not always the cause.

Project file problems

The selected file is not a valid ZIP/JAR container

The file may be a RAR or 7z archive renamed to ZIP, or it may be damaged. Create a new ZIP archive.

ZIP archive exceeds 500 MB

The upload is too large. Remove generated folders such as target, build, .gradle, .git, and node_modules.

No supported build system or Java source tree was detected

The ZIP may be missing a build file or Java source. Check that it includes pom.xml or build.gradle and the complete project.

Unsafe ZIP path

The archive contains an unsafe path such as ../. NYXO JAR rejects unsafe paths; create a clean archive from the project folder.

Java version problems

invalid source release: 21 or release version 21 not supported

The build is using an older JDK than the project requires. Check maven.compiler.release or the Gradle Java toolchain and remove conflicting version settings.

Unsupported class file major version 65

An older Gradle version may not understand the Java version used by the project. Update the Gradle wrapper or use a compatible Java version.

Dependency problems

Could not resolve dependencies or Could not find artifact

Check whether the dependency is in a private repository, whether its repository is configured, and whether the name and version are correct.

package org.bukkit does not exist or cannot find symbol

The API dependency may be missing or incompatible with the source. Check the configured spigot-api or paper-api version.

Timeouts and resources

Build stopped after a long time

Increase the build time limit in Settings, up to one hour. The first build can take longer while tools are downloaded.

Cannot fork or out of memory

This can be a server resource issue. Check the build log and server capacity; contact the service owner if the issue repeats.

The build succeeded, but the plugin did not load

Unsupported API version

The api-version in plugin.yml may be newer than the server. Lower it or upgrade the server.

UnsupportedClassVersionError ... class file version 65.0

The JAR was built for a newer Java version than the server uses. Class version 65 is Java 21; upgrade the server runtime or target an older Java version.

NoClassDefFoundError

A required library may not be bundled in the JAR. Maven projects can use maven-shade-plugin; Gradle projects can use shadowJar, unless the server already provides the library.

Invalid plugin.yml

Check the file’s syntax and required fields, including name, main, and version.

Still stuck? Read the FAQ or contact the owner through Discord with the relevant error line.

Read the log before changing settings

When Gradle or Maven fails, the last line may only summarize the failure, not explain it. Search upward for the first exception or message beginning with Could not or error:, then follow the named file or task. A Java compiler error may point to the first source line that failed, followed by many cannot find symbol messages. Start with the first useful error, make one change, and build again.

Keep a copy of the settings before you edit them. Record the JDK, build-tool version, Minecraft version, and platform. If you share a log with someone, remove email addresses, tokens, and private repository URLs. Do not paste the full gradle.properties or Maven settings file if it contains credentials; share only the message and the non-sensitive build configuration that matters.

Project detection failures

A missing build-system message often means the ZIP has an unexpected folder structure or the build file was not included. Open the archive and look for pom.xml, build.gradle, or build.gradle.kts. For a multi-module project, include the root file that declares those modules, such as settings.gradle or the parent POM. Do not upload only src when dependencies and versions are defined elsewhere.

A “not a valid ZIP” message differs from a project-detection failure. The first means the container could not be read or is not actually ZIP; the second means the archive opened but no supported build setup was found. Re-create the archive with a standard ZIP tool instead of changing its extension. If a path such as ../ is rejected, do not try to bypass that check. Make a new ZIP from the project directory so all files stay inside it.

Java, Gradle, and Maven

invalid source release: 21 means the active compiler is older than the requested source level. Check the JDK selected by the build, not just the Java installed on your computer. In Maven, inspect maven.compiler.release and the maven-compiler-plugin; in Gradle, inspect the toolchain and options.release. A value of 17 in one place and 21 in another can make behavior inconsistent. The Java chart maps class-file majors to Java releases.

Unsupported class file major version 65 can come from Gradle or a bytecode-analysis library that cannot read Java 21 class files; it can also appear when a runtime is too old for the compiled output. Read which program printed the message and when it happened: Gradle startup, compilation, or server launch. The fix differs. Upgrade the Gradle wrapper to a version that supports the chosen JDK, or select a JDK compatible with the project and server. Do not lower the target blindly if the source uses newer Java features.

Dependencies and descriptors

Could not resolve calls for checking the artifact name, version, and repository. The repository may require authentication, have moved, or no longer publish that release. Never put credentials in an uploaded project. If the compiler reports package org.bukkit does not exist, confirm the API dependency is declared with an appropriate compile-only or provided scope and that the correct repository is configured. Ordinary plugins should not bundle the server API unless the platform's instructions explicitly require it.

After a successful build, runtime failures have a different checklist. Unsupported API version means compare api-version in plugin.yml with the server release. NoClassDefFoundError means the JVM could not find a class at load time; the library may be missing from the JAR or the runtime classpath. Do not shade every dependency by default. Some libraries are supplied by the server, while others need bundling or relocation to avoid conflicts.

When the issue is outside the build

If the JAR exists but the plugin is absent, check the install folder, filename, and startup log. A server plugin normally goes in plugins, a mod in mods, and a proxy plugin in the proxy application. Match the loader to the project descriptor; a Fabric mod JAR is not a Paper plugin just because both use the JAR format. If the error remains, share a short log around the first failure with the server release and Java version, then review the FAQ or platform pages.

Ready? Upload your project and download the JAR.Build your project
Read next:Guides and quick fixes related to this topic.