问题描述
一开始我的eclipse还能用,还是好的,然后好像是360提示有个关于JAVA的漏洞,然后我就补了这个漏洞,启动eclipse时居然就启不起来了,提示fail to create Java Virtual Machine这个错误,
于是上网找了答案,找到了解决方法,解决如下:
解决办法
找到eclipse安装目录下的eclipse.ini配置文件,打开如下:
-startup
-vm D:\Java\jre6\bin\javaw
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:\Java\jre6\bin\javaw
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
然后就能正常启动了。。