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

时间:2014-08-26 19:28:57   收藏:0   阅读:179

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

 bubuko.com,布布扣

 

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

 bubuko.com,布布扣

 

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!