Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(1.15.2 Recommended MDK) Gradle Daemon unable to start

Featured Replies

Posted

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?

  • Author
Quote

Have you downloaded JDK?

 

Yes, I have JDK 13, but for general uses I have JRE 8

Edited by Kylogias
Quote

I use JDK 8 but have you showed windows where the JDK is located using the system variables?

Edited by mc_jojo3

  • Author
1 minute ago, mc_jojo3 said:

I use JDK 8 but have you showed windows where the JDK is located using the system variables?

What system variable should I edit/add?

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:

fdsgfsdfgspp.PNG

  • Author
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:

fdsgfsdfgspp.PNG

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

  • Author
31 minutes ago, diesieben07 said:

The error seems to suggest you are using 32-Bit Java.

Should I be using 64-Bit?

  • Author
17 minutes ago, diesieben07 said:

Yes. you are presumably using a 64 bit OS, you should be using 64 Bit software.

Does that look like the ONLY problem, or is this going to help get more information

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.