Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Gradle Startup Error "Could not reserve enough space for for object heap"

Recommended Posts

So I'm trying to mod minecraft 1.15.2 and but I can't seem to run the gradle build as it can't find the RAM to initialise the JVM. I played around with the gradle.properties file and it can only start when I allocate 1.2GB or lower despite having 9GB free of 16GB. I am 99% percent sure I successfully switched over to the 64bit jdk1.8.0._261 so I really don't know what could be causing the issue. I've attached screenshots of my user path, system path, aand the error message.
here's the result of for java -version

C:\dev\minecraft\Forge Test>java -version
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)

C:\dev\minecraft\Forge Test>javac -version
javac 1.8.0_261

system path.png

user path.png

failed to get object heap.png

Link to post
Share on other sites

Do you have 32 Bit Java installed at all? If so, you should remove it (there is no need to have it).

Also make sure that JAVA_HOME is configured correctly to your 64 Bit JDK.

Also note that IntelliJ has a separate setting for the Gradle and Project JDK, which will override other settings.

  • Like 1
Link to post
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.

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