Topic category: Troubleshooting, bugs, and solutions
Before downloading zip archive we had mcreator 2023.1 and then installed the archive and extracted it.
And we tried to make forge 1.20.1 forge mod and it made workspace successfuly but it could not build because ofcould not find or load worker.org.gradle.process.internal.worker.GradleWorkerMain
<- :compileJava step.
Same with neoforge but error ocurs in workspace setup step (:neoFormRecompile)
I tried removing .mcreator/gradle folder but it didn't work, also tried removing gradle folder from workspace but it resoulted with another error (bc mcreator didnt redownload libraries to build project)
here is error message from creating neoforge mod workspace
Executing Gradle task: idePostSync
Build info: MCreator 2024.2.29712, neoforge-1.20.6, 64-bit, 8094 MB, Windows 11, JVM 21.0.3, JAVA_HOME: C:\Users\Użytkownik\Downloads\MCreator20242\jdk, started on: 2024-08-03-15:58:02
Calculating task graph as no cached configuration is available for tasks: idePostSync
> Task :cacheVersionManifest1.20.6
> Task :create1.20.6ClientExtraJar
> Task :selectRawArtifactNg_dummy_ng.net.minecraft_client_1.20.6_client-extra
> Task :neoFormListLibraries
> Task :cacheVersionExecutableClient1.20.6
> Task :cacheVersionExecutableServer1.20.6
> Task :neoFormStripClient
> Task :neoFormExtractServer
> Task :neoFormStripServer
> Task :neoFormMerge
> Task :cacheVersionMappingsClient1.20.6
> Task :neoFormMergeMappings
> Task :neoFormRename
> Task :cacheVersionMappingsServer1.20.6
> Task :neoFormDecompile
> Task :neoFormApplyForgesAccessTransformer
> Task :neoFormInject
> Task :neoFormPatch
> Task :neoFormPatchUserDev
> Task :neoFormApplyOfficialMappings
> Task :supplySourcesForneoFormJoined1.20.6-20240429.153634
> Task :selectSourceArtifactNg_dummy_ng.net.neoforged_neoforge_20.6.117
> Task :neoFormUnzipSources
> Task :neoFormRecompile
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
> Task :neoFormRecompile FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':neoFormRecompile'.
> Failed to run Gradle Worker Daemon
> Process 'Gradle Worker Daemon 1' 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 41m 49s
24 actionable tasks: 24 executed
Configuration cache entry stored.
BUILD FAILED
Task completed in 41 minutes and 51 seconds
also we later used 2024.2 installer and same errors and btw gradle version mcreator was installing is 8.8
btw i forgot to mention that only java plugins installed is git plugin bc we wanted to work in team