Topic category: Help with MCreator software
Every time I try to test my mod I get this return code:
Executing gradle command: clean runClient
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Pylo\MCreator166>cd forge
C:\Pylo\MCreator166\forge>SET "JAVA_HOME=C:\Pylo\MCreator166\jdk32\"
C:\Pylo\MCreator166\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator166\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator166\forge>SET "JAVA_OPTS=-Xmx1024m -Xms512m"
C:\Pylo\MCreator166\forge>gradlew clean runClient
Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
Picked up _JAVA_OPTIONS: -Xmx256M
C:\Pylo\MCreator166\forge>
Task completed with return code 0 in 1735 milliseconds
What is wrong, and how canI fix it?
Delete the last thing you made, if that don't work then your screwed
If this is for every work client in the program, probably reinstall or compile
I reinstalled and it still says the same thing.
Dear, User. Please modify the ram given to the Test client. You can find this by clicking on the "Preferences" button in the top right of the program. Adjust the ram appropriately.
@xXMCXx: Could you explain that a little better? What do mean by apprppriately?
I've also discovered that I can't export my mod to a .zip or .jar. WhenI try MCreator tells me there is an error in my mod...even though there should not be. Everything I try to do yields the same message, the only change being the amount of time it took to telll me that.
I have already tried deleting the mod and trying again, but it does this for EVERY mod in EVERY workspace I try.
I also uninstalled/reinstalled MCreator, but to no avail.
I have done extensive trials to fix this problem; this is what I have determined:
- it does this for all MCreator versions newer than 1.6.3
-it returns this error before it even launches the gradle
-it does this for the 32 bit and 64 bit downloads
-it will not export mods to zip or jar files as it claims there is an error in the mod
-it does this for uploaded mcr files and mods made from scratch in a differetn workspace
-adjusting ram designated to MCreatorseems to have no effect
-the only part of the error that changes is the time it takes to return the message
does ANYONE have ANY idea how to fix this?
This is literally the first thing the console outputs upon strating the program:
the line in bold is in red letters, the rest of the error code is white
BOOTING UP GRADLE...
Data loaded, MCreator gradle console ready [ver 1.007]! [boot took 0 milliseconds]
RIGHT click once to copy log to the clipboard or twice to clear the log.
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Pylo\MCreator166>cd forge
C:\Pylo\MCreator166\forge>SET "JAVA_HOME=C:\Pylo\MCreator166\jdk64\"
C:\Pylo\MCreator166\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator166\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator166\forge>SET "JAVA_OPTS=-Xmx2048m -Xms625m"
C:\Pylo\MCreator166\forge>gradlew cleanCache clean setupDecompWorkspace --refresh-dependencies
Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
Picked up _JAVA_OPTIONS: -Xmx256M
C:\Pylo\MCreator166\forge>
Task completed with return code 0 in 1610 milliseconds
JAVA_OPTIONS: -Xmx256M defines the given Ram to the program.
You need to decrease or increase the Xmx (Ram). Here's how.
Open Mcreator,
press the gear icon,
Go to "Gradle Settings"
Change "Initial Memory" to 512
Change "Maximum Memory" to 1,500
If this does not work, i have no idea what's wrong with Mcreator.
I know this is an older topic, but if someone stumbles upon this problem
a possible solution for this problem is described here: https://mcreator.net/wiki/gradle-setup-errors#wiki-index-14