ubuntu Myeclipse 自动关闭问题
网上说的关于修改myeclipse.ini文件的方法不能解决我所遇到的问题。
当Myeclipse自动关闭的时候会产生一个错误日志hs_err_pidxxxx.log
其中有一部分内容为:
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x06594770, pid=2854, tid=1921440624
#
# Java VM: Java HotSpot(TM) Server VM (11.3-b02 mixed mode linux-x86)
# Problematic frame:
# V [libjvm.so+0x594770]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
大致可以明白说自动关闭是java关闭了myeclipse
查看 myeclipse.ini ,内容如下:
#ansi (do not remove)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505
-install
/home/rqg/MyEclipse/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/bin/java
-vm
/usr/lib/jvm/java-7-oracle/bin/java
-vmargs
-Xmx1024m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=64m
-Dosgi.nls.warnings=ignore
注意红色字段,这说明myeclipse启动的时候是用的本身自带的java,并没有使用我们安装的java,只要将此处(红色字段)替换成我们安装的java能使myeclipse较为稳定的运行。
替换结果为:
-install
/usr/lib/jvm/java-7-oracle/bin/java
-vm
在此之前我是用Myeclipse非常频繁的自动关闭,替换虚拟机至今(三天,使用时间为12小时)没有出现myeclipse自动退出的现象