您的位置:首页 > 编程语言 > Java开发

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

2015-06-09 14:57 691 查看
</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="http://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了。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: