Topic category: Troubleshooting, bugs, and solutions
I downloaded and installed a plugin for Forge 1.20.1 and created my workspace. Even without adding any elements, I can't run my client; it gives me this error:
Executing Gradle task: runClient
Build info: MCreator 2025.2.27613, forge-1.20.1, 64-bit, 16085 MB, Windows 11, JVM 21.0.7, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2025-07-09-22:28:45
Reusing configuration cache.
> Task :writeClientLegacyClasspath UP-TO-DATE
> Task :downloadAssets UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :createMinecraftArtifacts UP-TO-DATE
> Task :prepareClientRun 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 7' 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 333ms
6 actionable tasks: 1 executed, 5 up-to-date
Configuration cache entry reused.
BUILD FAILED
Task completed in less than a second
Try deleting <workspace folder>/build
I tried but still the same problem