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

来源:互联网 发布:ubuntu 怎么进入u盘 编辑:程序博客网 时间:2024/04/30 02:20
</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;">-startupplugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807-productadtproduct--launcher.XXMaxPermSize256M-showsplashorg.eclipse.platform--launcher.XXMaxPermSize256m--launcher.defaultActionopenFile-vmargs-Dosgi.requiredJavaVersion=1.6-Xms40m-Xmx768m

 

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

-startupplugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807-productadtproduct--launcher.XXMaxPermSize128M-showsplashorg.eclipse.platform--launcher.XXMaxPermSize128m--launcher.defaultActionopenFile-vmargs-Dosgi.requiredJavaVersion=1.6-Xms40m-Xmx128m

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









0 0