I am trying to make a Minecraft 1.16.4 mod in forge.
I use eclipse to code my mods.
I use the command gradlew genEclipseRuns
I had an error saying:
unable to get mutable windows environment variable map
which I fixed with https://www.simplilearn.com/tutorials/gradle-tutorial/gradle-installation.
Now the error I am getting is
Exception in thread "main" java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
at org.jetbrains.java.decompiler.struct.StructContext.addSpace(StructContext.java:102)
at org.jetbrains.java.decompiler.struct.StructContext.addSpace(StructContext.java:70)
at org.jetbrains.java.decompiler.main.Fernflower.addLibrary(Fernflower.java:109)
at org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler.addLibrary(ConsoleDecompiler.java:177)
at org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler.main(ConsoleDecompiler.java:117)
Caused by: 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.jar.JarFile.(JarFile.java:167)
at java.util.jar.JarFile.(JarFile.java:131)
at org.jetbrains.java.decompiler.struct.StructContext.addArchive(StructContext.java:135)
at org.jetbrains.java.decompiler.struct.StructContext.addSpace(StructContext.java:92)
... 4 more
I searched all over the internet but could not find a fix for this.