问题描述
一开始我的eclipse还能用,还是好的,然后好像是360提示有个关于JAVA的漏洞,然后我就补了这个漏洞,启动eclipse时居然就启不起来了,提示fail to create Java Virtual Machine这个错误,

于是上网找了答案,找到了解决方法,解决如下:
解决办法
找到eclipse安装目录下的eclipse.ini配置文件,打开如下:
- -startup
- -vm D:Javajre6binjavaw
- plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
- --launcher.library
- plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
- -product
- org.eclipse.epp.package.jee.product
- --launcher.defaultAction
- openFile
- --launcher.XXMaxPermSize
- 256M
- -showsplash
- org.eclipse.platform
- --launcher.XXMaxPermSize
- 256m
- --launcher.defaultAction
- openFile
- -vmargs
- -Dosgi.requiredJavaVersion=1.5
- -Xms40m
- -Xmx512m
- -Dsun.lang.ClassLoader.allowArraySyntax=true
只要吧上面的256M改成128M,512M改成128M,改完之后如下:
- -startup
- -vm D:Javajre6binjavaw
- plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
- --launcher.library
- plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
- -product
- org.eclipse.epp.package.jee.product
- --launcher.defaultAction
- openFile
- --launcher.XXMaxPermSize
- 128M
- -showsplash
- org.eclipse.platform
- --launcher.XXMaxPermSize
- 128m
- --launcher.defaultAction
- openFile
- -vmargs
- -Dosgi.requiredJavaVersion=1.5
- -Xms40m
- -Xmx256m
- -Dsun.lang.ClassLoader.allowArraySyntax=true

然后就能正常启动了。。
最后
以上就是伶俐路人最近收集整理的关于Eclipse启动时fail to create Java Virtual Machine问题的解决的全部内容,更多相关Eclipse启动时fail内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复