Mod file creation was cancelled

Started by havchik on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mod file creation was cancelled

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

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
didn't help
Fri, 08/29/2025 - 17:29
didn't help
Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did everything that was…
Fri, 08/29/2025 - 19:08
I did everything that was written, but it didn't help.
Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried exporting to…
Sat, 08/30/2025 - 06:53
I tried exporting to NeoForge and it worked. But I need Forge. Maybe I need to download another version of Forge?