`
jiangnan2112
  • 浏览: 120100 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
社区版块
存档分类
最新评论

JVM自动关闭,JVM terminated. Exit code=1

阅读更多
最近一打开myeclipse6.5,总是意处的关闭,弹出一个报异常框,信息如下:
JVM terminated. Exit code=1
/home/hbc25/Desktop/jdk1.6.0_05/bin/java
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m
-jar /home/hbc25/Apps/eclipseLatest/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/hbc25/Apps/eclipseLatest/eclipse/eclipse
-name Eclipse
--launcher.library /home/hbc25/Apps/eclipseLatest/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.3.R33x_v20080118/eclipse_1023.so
-startup /home/hbc25/Apps/eclipseLatest/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata a800f
-vm /home/hbc25/Desktop/jdk1.6.0_05/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m
-jar /home/hbc25/Apps/eclipseLatest/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar 

我到网上找了些资料,其中有一个贴子这样回的:
I had just the same problem and error with running eclipse. The solution that worked for me was to modify parameters in 'eclipse.ini' file:
-Xmx512m|
-> 
-Xmx256m


经过签定,上面这个人的回答能够解决问题,至少我解决了,也就是把myeclipse安装目录下eclipse目录下的eclipse.ini的文件改一下:把其中的-Xmx512m改为-Xmx256m

原因是设置的内存过大导致的,其实这是我改成512的,是想让eclipse占资源多点,到时运行的也快点,结果证明我画蛇添足,哈哈
分享到:
评论
2 楼 xiong3050 2012-05-25  
不过这种方法,我的程序运行出问题了
1 楼 xiong3050 2012-05-25  
谢谢分享!

相关推荐

Global site tag (gtag.js) - Google Analytics