Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine

后端 未结 8 1966
轻奢々
轻奢々 2020-12-25 09:04

I am facing this problem since more than a month, here is what I see when I run java on command line:

$ java -Xmx1300m 
Error occurred during initialization          


        
8条回答
  •  滥情空心
    2020-12-25 09:42

    Anyway, here is how to fix it:

    Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System Variables->New:

    Variable name: _JAVA_OPTIONS

    Variable value: -Xmx512M

    taken from this link

提交回复
热议问题