Jump to content

Gradle Build Error


eggpasta

Recommended Posts

When i try to build my mod i get the following error:

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 Manual chapter on the daemon at https://docs.gradle.org/6.8.1/userguide/gradle_daemon.html
Process command line: C:\Program Files (x86)\Java\jre1.8.0_271\bin\java.exe -Xmx3G -Dfile.encoding=windows-1252 -Duser.country=CA -Duser.language=en -Duser.variant -cp C:\Users\ewanj\.gradle\wrapper\dists\gradle-6.8.1-all\923to48kq3drqywuppfjkcokx\gradle-6.8.1\lib\gradle-launcher-6.8.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.8.1
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

 

Link to comment
Share on other sites

33 minutes ago, eggpasta said:

Could not reserve enough space for 3145728KB object heap

You're running out of memory.

You have a 32-bit Java by the looks of it, if you have a 64 bit system, get 64 bit Java.

If you for some reason are actually running a 32 bit system, I'm not sure there is anything you can do besides upgrade, since 32 bit systems only support ~3GB max ram.

Link to comment
Share on other sites

Just now, Ugdhar said:

You're running out of memory.

You have a 32-bit Java by the looks of it, if you have a 64 bit system, get 64 bit Java.

If you for some reason are actually running a 32 bit system, I'm not sure there is anything you can do besides upgrade, since 32 bit systems only support ~3GB max ram.

Where do i get 64 bit java?

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.

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...

×   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.