Could not reserve enough space for object heap

后端 未结 26 1641
余生分开走
余生分开走 2020-11-22 05:59

I am getting the following exception repeatedly each time I try to run the program.

Error occurred during initialization of VM

Could not reserve e

26条回答
  •  悲哀的现实
    2020-11-22 06:35

    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 Variable name: Path
      Variable value: %PATH%;C:\Program Files\Java\jre6\bin;F:\JDK\bin;

    Change this to your appropriate path.

提交回复
热议问题