Can't Export or Test Mods

Published by Mineplay25 on
Status
Resolved
Issue description

I'm having issues with MCreator not being able to export, or test mods. I will click Build or Play, and it does nothing. It's saying in the console stuff like "gradlew is not recognized as an internal or external command". Note that I have tried to uninstall and reinstall, and that didn't change anything.
This is what the console says:

Executing gradle command: runClient
Build info: MCreator 1.9.1, 64-bit, 8150 MB, Windows 10 - cmd, JVM 1.8.0_222, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
C:\Users\(Taken Out)\MCreatorWorkspaces\ultra_ores_dimension_mod>gradlew -Dorg.gradle.java.home="C:/Program Files/Pylo/MCreator/jdk" -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" runClient 
'gradlew' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\(Taken Out)\MCreatorWorkspaces\ultra_ores_dimension_mod>
Task completed with return code 0 in 98 milliseconds

 

Edit: I tracked down the Program Files. When I uninstall the program, it's still fully accessible, and at C:\Program Files\Pylo, MCreator still exists. Please someone help me out with this.

Issue comments

Another Edit: Now it's saying this:

Executing gradle command: build
Build info: MCreator 1.9.1, 64-bit, 8150 MB, Windows 10 - cmd, JVM 1.8.0_222, JAVA_HOME: C:\Users\(Taken out)\Pylo\MCreator\jdk
C:\Users\(Taken out)\MCreatorWorkspaces\hackers_mod>gradlew -Dorg.gradle.java.home="C:/Users/(Taken out)/Pylo/MCreator/jdk" -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" build 
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'hackers_mod'.
> Could not open cp_proj remapped class cache for 68gvybaxhmnc0b15ew7oc06w7 (C:\Users\(Taken out)\.mcreator\gradle\caches\4.4\scripts-remapped\build_c8wc51sdx0gbx7flf9hlrna76\68gvybaxhmnc0b15ew7oc06w7\cp_proj638c4bcc3be846fd35262b91d5a74869).
   > Could not open cp_proj generic class cache for build file 'C:\Users\(Taken out)\MCreatorWorkspaces\hackers_mod\build.gradle' (C:\Users\(Taken out).mcreator\gradle\caches\4.4\scripts\68gvybaxhmnc0b15ew7oc06w7\cp_proj\cp_proj638c4bcc3be846fd35262b91d5a74869).
      > java.io.FileNotFoundException: C:\Users\(Taken out)\.mcreator\gradle\caches\4.4\scripts\68gvybaxhmnc0b15ew7oc06w7\cp_proj\cp_proj638c4bcc3be846fd35262b91d5a74869\cache.properties (The system cannot find the file specified)
* 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 7s
C:\Users\(Taken out)\MCreatorWorkspaces\hackers_mod>
Task completed with return code 0 in 8290 milliseconds

Delete the workspace ultra_ores_dimension_mod and make it again. Make sure you have permission to write to folder C:\Users\(Taken Out)\MCreatorWorkspaces and that no antivirus is blocking MCreator in any way.

This all started happening when I had to activate a system restore point because of a virus attack.

You are welcome! I am glad I could help :) If you like what we do, consider donating to us to help us keep this project up.