Eclipse启动出现Exit code=-1错误的解决办法
Posted by Harry on 2010年04月30日
0 comments
今天启动eclipse时突然报错,弹出如下图所示的窗口,显示”JVM terminated. Exit code=-1″
这一般是由于配置文件中内存的设置过大导致的,找到eclipse根目录下eclipse.ini文件,如下:
-startup plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 -product org.eclipse.epp.package.jee.product --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms128m -Xmx512m
找到”-Xmx512m”(你的配置与上述配置可能并不相同),适当改小数值,如”-Xmx256m”,保存后重启eclipse。
