Topic category: Troubleshooting, bugs, and solutions
Hi, I'm trying to export my mod but I get the error "Mod file creation cancelled".
console log:
Executing Gradle task: build
Build info: MCreator 2025.2.28610, forge-1.20.1, 64-bit, 16291 MB, Windows 11, JVM 21.0.7, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2025-08-29-09:58:46
Reusing configuration cache.
> Task :jarJar NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :processResources UP-TO-DATE
> Task :createMinecraftArtifacts UP-TO-DATE
> Task :compileJava FAILED
Error: Could not find or load main class worker.org.gradle.process.internal.worker.GradleWorkerMain
Caused by: java.lang.ClassNotFoundException: worker.org.gradle.process.internal.worker.GradleWorkerMain
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Failed to run Gradle Worker Daemon
> Process 'Gradle Worker Daemon 4' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 299ms
3 actionable tasks: 1 executed, 2 up-to-date
Configuration cache entry reused.
BUILD FAILED
Task completed in less than a second