`

Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法

 
阅读更多

Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法

1、打开Eclipse软件,选择菜单栏run,在二级菜单中选择 Debug Configurations... 项,如下图所示。

 

2、在弹出的窗口中选择 (x)=Arguments 选项卡,VM arguments 输入框中输入所需要的内存最大占用量,我这里输入的是800兆。最后点击Apply按钮即可。

 

【附】MyEclipse的设置地址在run--->Open Run Dialog--->Arguments

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics