Windows Install fails on Caching Decompiled Code

Published by Bernarr on
Status
Fixed
Issue description

I'm getting this error during the initial installation of MCreator-

 

Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.0, 64-bit, 32667 MB, Windows 7, JVM 1.8.0_172
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Pylo\MCreator180\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx4096m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
Unzipping C:\Users\Chris\.mcreator\gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk\gradle-2.14-bin.zip to C:\Users\Chris\.mcreator\gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.(ZipFile.java:225)
   at java.util.zip.ZipFile.(ZipFile.java:155)
   at java.util.zip.ZipFile.(ZipFile.java:169)
   at org.gradle.wrapper.Install.unzip(Install.java:159)
   at org.gradle.wrapper.Install.access$500(Install.java:26)
   at org.gradle.wrapper.Install$1.call(Install.java:69)
   at org.gradle.wrapper.Install$1.call(Install.java:46)
   at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
   at org.gradle.wrapper.Install.createDist(Install.java:46)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
C:\Pylo\MCreator180\forge>
Task completed with return code 0 in 745 milliseconds

 

I've attempted a clean install as my internet was spotty the first time I tried installing it. 

Issue comments

Go to C:\Users\Chris\.mcreator\, delete folder gradle in this folder and run the setup again.

I'm receiving the same error after deleting the folder-

 

   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.0, 64-bit, 32667 MB, Windows 7, JVM 1.8.0_172
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Pylo\MCreator180\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms2048m -Xmx8192m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
Downloading https://services.gradle.org/distributions/gradle-2.14-bin.zip
..............................................................................................................................................................................................................................................................................................................................................................................
Unzipping C:\Users\Chris\.mcreator\gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk\gradle-2.14-bin.zip to C:\Users\Chris\.mcreator\gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.(ZipFile.java:225)
   at java.util.zip.ZipFile.(ZipFile.java:155)
   at java.util.zip.ZipFile.(ZipFile.java:169)
   at org.gradle.wrapper.Install.unzip(Install.java:159)
   at org.gradle.wrapper.Install.access$500(Install.java:26)
   at org.gradle.wrapper.Install$1.call(Install.java:69)
   at org.gradle.wrapper.Install$1.call(Install.java:46)
   at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
   at org.gradle.wrapper.Install.createDist(Install.java:46)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
C:\Pylo\MCreator180\forge>
Task completed with return code 0 in 821300 milliseconds

 

Checking the zip, it seems it's corrupted-

    C:\Users\Chris\.mcreator\gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk\gradle-2.14-bin.zip: The archive is corrupt
 

Do you have a solid stable internet connection? Try disabling FW and AV and try doing the whole process again.