Java Could not reserve enough space for object heap error

后端 未结 8 1792
闹比i
闹比i 2020-12-08 10:56

I have Java7 running on 32-bit Windows and 4 GB RAM, but:

java -Xmx4G -Xms4G -jar Minecraft.jar 
java -Xmx3G -Xms3G -jar Minecraft.jar 
java -Xmx2G -Xms2G -j         


        
8条回答
  •  醉梦人生
    2020-12-08 11:04

    This was occuring for me and it is such an easy fix.

    1. you have to make sure that you have the correct java for your system such as 32bit or 64bit.
    2. if you have installed the correct software and it still occurs than goto

      control panelsystemadvanced system settings for Windows 8 or

      control panelsystem and securitysystemadvanced system settings for Windows 10.

    3. you must goto the {advanced tab} and then click on {Environment Variables}.
    4. you will click on {New} under the
    5. you will create a new variable. Variable name: _JAVA_OPTIONS Variable Value: -Xmx512M

    At least that is what worked for me.

提交回复
热议问题