Could not reserve enough space for object heap

后端 未结 26 1626
余生分开走
余生分开走 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: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

    OR

    Change the ant call as shown as below.

       **
        
    

    It worked for me.

提交回复
热议问题