Eclipse启动时f出现ail to create Java Virtual Machine问题的解决

</pre><p><span style="font-family: Arial; font-size: 14px; line-height: 26px;"> 出现的问题情况:</span></p><p><span style="font-family: Arial; font-size: 14px; line-height: 26px;">一直我的eclipse都能用,还是好的,后来不晓得是什么问题,启动eclipse时居然就启不起来了,提示fail to create Java Virtual Machine这个错误,</span></p><p><span style="font-family: Arial; font-size: 14px; line-height: 26px;"><img src="https://img-blog.csdn.net/20150609145735823?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd2VpeGlhbnlh/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" /></span></p><p><span style="font-family: Arial; font-size: 14px; line-height: 26px;">参考网上的资料,发现应该是限制内存的问题,修改方法如下:</span></p><p><span style="font-family: Arial; font-size: 14px; line-height: 26px;"><span style="font-family: Arial; font-size: 14px; line-height: 26px;">找到eclipse安装目录下的eclipse.ini配置文件,打开如下:</span></span></p><p><span style="font-family: Arial; font-size: 14px; line-height: 26px;"></span></p><p></p><pre name="code" class="html" style="font-family: Arial; font-size: 14px; line-height: 26px;">-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
adtproduct
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m

 

只要把上面的launcher.XXMaxPermSize后面的256改为128;osgi.requiredJavaVersion后面的768改为128就可以了。如下:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
adtproduct
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize128m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx128m

只要就可以正常启动eclipse了。









  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值