• Register
1 vote


I have been using java7 on my 32bit windows with 4 RAM and I am getting the messages below while using these codes

java -Xmx4G -Xms4G -jar Minecraft.jar 
java -Xmx3G -Xms3G -jar Minecraft.jar 
java -Xmx2G -Xms2G -jar Minecraft.jar
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.

Why this is happening? Any solution?

15.3k points

Please log in or register to answer this question.

1 Answer

1 vote


Well, the minimum requirement on a 32 bit PC for heap size is 1.5 GB and the maximum size is 1.8 GB according to IBM. That’s the reason your JVM is not initialized for -Xmx2G

The possible solution, in this case, could be:

Go to Start > Control Panel > System > Advanced system settings > advanced(tab) > Environment Variables > System Variables > New

Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M

Boom. This should work now.

94.3k points