运行Eclipse时弹出错误对话框

如果你运行Eclipse弹出一个错误对话框,内容如下:

 

JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256M
-Djava.class.path=E:/Program Files/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
-os win32
-ws win32
-arch x86
-showsplash E:/Program Files/eclipse//plugins/org.eclipse.platform_3.3.101.v200809111700/splash.bmp
-launcher E:/Program Files/eclipse/eclipse.exe
-name Eclipse
--launcher.library E:/Program Files/eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731/eclipse_1115.dll
-startup E:/Program Files/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
-framework plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
-vm C:/Program Files/Java/jre6/bin/client/jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256M
-Djava.class.path=E:/Program Files/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar

 

导致Eclipse无法运行,这时你可以打开Eclipse安装目录,打开eclipse.ini

会有如下内容:

 

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-framework
plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

 

只要将最后一行的数值改小就可以了,我的将512m改成了256m就可以了。如果256m不行就改成128m或更小。

你可能感兴趣的:(eclipse,jvm,c,X86)