HELP: Gradel deamon wont start

I’m just starting out on modding Minecraft and after opening the project and building the gradel project i would continuously get this error

Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at
Process command line: C:\Program Files (x86)\Eclipse Adoptium\jdk-\bin\java.exe --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/ --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx3G -Dfile.encoding=windows-1252 -Duser.language=en -Duser.variant -cp C:\Users\dante\.gradle\wrapper\dists\gradle-7.4.2-bin\48ivgl02cpt2ed3fh9dbalvx8\gradle-7.4.2\lib\gradle-launcher-7.4.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.4.2
Please read the following process output to find out more:
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap

Check the JVM arguments defined for the gradle process in:
 - in project root directory`Preformatted text`

im following this tutorial Minecraft 1.19 Forge Modding Tutorial | SETTING UP THE WORKSPACE | #1 by Modding by Kaupenjoe any help would be greatly appreciated

Which part of

Could not reserve enough space for 3145728KB object heap

is unclear?
You configured the daemon to use 3 TiB heap and you do not have enough RAM for that.
The error even tells you where you most probably configured that.

I was using the 32bit jdk instead of the 64bit on accident so it wouldn’t let me allocate the whole amount but you were right so thank you so much

1 Like