MCreator failed setup

Published by OutOfMind on Sat, 02/16/2019 - 07:45
Status
Fixed
Type
Product/platform
Not applicable
Priority
Normal
Issue description

This is the log:

 

   
Executing gradle command: wrapper --gradle-version 4.4
Build info: MCreator 1.8.2, 64-bit, 8107 MB, Windows 10 - cmd, JVM 1.8.0_192, JAVA_HOME: C:\Pylo\MCreator182\.\jdk
(c) 2018 Microsoft Corporation. Tutti i diritti sono riservati.
C:\Pylo\MCreator182\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" wrapper --gradle-version 4.4 
Exception in thread "main" java.lang.RuntimeException: Could not locate the Gradle launcher JAR in Gradle distribution 'C:\Users\Phart\.mcreator\gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk\gradle-2.14'.
   at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:39)
   at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:25)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
C:\Pylo\MCreator182\forge>
Task completed with return code 0 in 447 milliseconds
   
Executing gradle command: setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.2, 64-bit, 8107 MB, Windows 10 - cmd, JVM 1.8.0_192, JAVA_HOME: C:\Pylo\MCreator182\.\jdk
(c) 2018 Microsoft Corporation. Tutti i diritti sono riservati.
C:\Pylo\MCreator182\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" setupDecompWorkspace --refresh-dependencies 
Exception in thread "main" java.lang.RuntimeException: Could not locate the Gradle launcher JAR in Gradle distribution 'C:\Users\Phart\.mcreator\gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk\gradle-2.14'.
   at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:39)
   at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:25)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
C:\Pylo\MCreator182\forge>
Task completed with return code 0 in 726 milliseconds
   
Executing gradle command: wrapper --gradle-version 4.4
Build info: MCreator 1.8.2, 64-bit, 8107 MB, Windows 10 - cmd, JVM 1.8.0_192, JAVA_HOME: C:\Pylo\MCreator182\.\jdk
(c) 2018 Microsoft Corporation. Tutti i diritti sono riservati.
C:\Pylo\MCreator182\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms1000m -Xmx3000m" wrapper --gradle-version 4.4 
Exception in thread "main" java.lang.RuntimeException: Could not locate the Gradle launcher JAR in Gradle distribution 'C:\Users\Phart\.mcreator\gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk\gradle-2.14'.
   at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:39)
   at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:25)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
C:\Pylo\MCreator182\forge>
Task completed with return code 0 in 440 milliseconds
   
Executing gradle command: setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.2, 64-bit, 8107 MB, Windows 10 - cmd, JVM 1.8.0_192, JAVA_HOME: C:\Pylo\MCreator182\.\jdk
(c) 2018 Microsoft Corporation. Tutti i diritti sono riservati.
C:\Pylo\MCreator182\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms1000m -Xmx3000m" setupDecompWorkspace --refresh-dependencies 
Exception in thread "main" java.lang.RuntimeException: Could not locate the Gradle launcher JAR in Gradle distribution 'C:\Users\Phart\.mcreator\gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk\gradle-2.14'.
   at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:39)
   at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:25)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
C:\Pylo\MCreator182\forge>
Task completed with return code 0 in 253 milliseconds

Issue comments

The fix for this is the following:

  1. Go to your user folder and in this folder, go to a folder called .mcreator. In this folder, delete a folder called gradle
  2. Reboot your computer
  3. Run MCreator again

If this does not help, try the following:

  1. Go to your user folder and in this folder, go to a folder called .mcreator. In this folder, delete a folder called gradle
  2. Completely reinstall MCreator
  3. Run the setup again

If this does not help, you might need to try the second guide a few times (I had to do it 2 times to make it work).

This issue was caused by an outdated repository that was in use by Minecraft Forge and their development gradle toolkit needs to be updated.

More info in this forum topic: https://mcreator.net/forum/47021/mcreator-cant-install



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.