Error: Could not create the Java Virtual Machine.

2 posts / 0 new
Last post
Last seen: 1 year 3 weeks ago
Joined: 11/19/2015 - 03:02
Gems: 0
Error: Could not create the Java Virtual Machine.

When I try to make anything (Item, block, mob exc.) It makes it seem as if it made it properly but as soon as I check the log it shows two errors. I never thought much of this to start but after I spent around two hours making a block to my specific needs it said I needed to deleted all of my stuff to get MCreater to work, so I did and nothing changed, I still get the errors. If anyone knows how to fix this please let me know, I checked all around the forums and couldnt find anything.



Executing gradle command: clean build
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Pylo\MCreator160>cd forge
C:\Pylo\MCreator160\forge>SET "JAVA_HOME=C:\Pylo\MCreator160\jdk\"
C:\Pylo\MCreator160\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator160\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator160\forge>SET "JAVA_OPTS=-Xmx1556m -Xms128m"
C:\Pylo\MCreator160\forge>gradlew clean build
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Task completed with return code 0 in 315 milliseconds
Task return code check OK!

Last seen: 7 months 3 weeks ago
Joined: 03/01/2016 - 12:21
Gems: 0
I had the same problem and i

I had the same problem and i found a fix! Go into Preferences top right and on the gradle jvm turn your ram down! i turned it down to 664. hope this helps :)