Not Installing - Gradle unable to delete file minecraft_server.jar

Status
Fixed
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

I always get this bug when attempting to load MCreator to my pc 1st time:
   

Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [Version 10.0.16299.125]
(c) 2017 Microsoft Corporation. All rights reserved.
D:\MCreator177>cd forge
D:\MCreator177\forge>SET "JAVA_HOME=D:\MCreator177\jdk64\"
D:\MCreator177\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
D:\MCreator177\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
D:\MCreator177\forge>gradlew -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
#################################################
         ForgeGradle 2.3-SNAPSHOT-e65f1e2        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
:cleanCache FAILED
FAILURE: Build failed with an exception.
BUILD FAILED
* WhatExecution faiTotal time: 2 mins 9.232 secs
led for task ':cleanCache'.
 went wrong:
> Unable to delete file: C:\Users\User\.gradle\caches\minecraft\net\minecraft\minecraft_server\1.12.2\minecraft_server-1.12.2.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
D:\MCreator177\forge>
Task completed with return code 0 in 129631 milliseconds

 

Issue comments

Try to go in C:\Users\User\.gradle\caches\minecraft\net\minecraft\minecraft_server\1.12.2\ folder and manually remove file minecraft_server-1.12.2.jar from this folder. After you do this, uninstall MCreator and install it again. Please report back if this worked.



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.