Jump to content

(1.15.2 Recommended MDK) Gradle Daemon unable to start


Recommended Posts

I'm just starting to mod. I don't know if i'm missing something, but I just started up a copy of the MDK, and it's unable to start the Gradle Daemon process. I ran 

gradlew.bat genEclipseRuns --info

And it didn't work, I also tried the eclipse command, didn't work. The output is 

Initialized native services in: user\.gradle\native
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.9/userguide/gradle_daemon.html.
Starting process 'Gradle build daemon'. Working directory: user\.gradle\daemon\4.9 Command: C:\Program Files (x86)\Java\jre1.8.0_231\bin\java.exe -Xmx3G -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp user\.gradle\wrapper\dists\gradle-4.9-bin\e9cinqnqvph59rr7g70qubb4t\gradle-4.9\lib\gradle-launcher-4.9.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.9
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 0.331 secs.

FAILURE: Build failed with an exception.

* What went wrong:
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 guide chapter on the daemon at https://docs.gradle.org/4.9/userguide/gradle_daemon.html
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

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Can anybody help me or tell me what i'm doing wrong?

Link to comment
Share on other sites

2 minutes ago, mc_jojo3 said:

You need to locate the directory for the jdk on your drive and if you do not have a variable named JAVA_HOME under system variables create one with the adress of your jdk here an example from mine:


I added a JAVA_HOME variable with the location to my JDK, but it's going for the JRE.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.