centos 6.x下折腾了好几天,eclipse,没有使用centos自带的,从eclipse官方下载,但一直报错,错误如下:
[feng@fsc ~]$ /usr/local/eclipse/eclipse # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x807afc5b, pid=3926, tid=3077723840 # # JRE version: 6.0_33-b04 # Java VM: Java HotSpot(TM) Client VM (20.8-b03 mixed mode linux-x86 ) # Problematic frame: # C [libxul.so+0xda8c5b] NS_StringGetMutableData_P+0x1bdbe # # An error report file with more information is saved as: # /home/feng/hs_err_pid3926.log # # 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. # 已放弃 (core dumped)
前两天也看到了消息里libxul.so的信息,但直到今天google了一下“libxul.so eclipse”才得知在在eclipse.ini最后加入如下两行即可
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-Dorg.eclipse.swt.browser.XULRunnerPath==/usr/lib/xulrunner-2
之前一直在jre/jdk上找原因,结果是徒劳的。
因为是要安装个android开发环境,android sdk不支持openJDK,而要使用sun/oracle的jdk,所以卸载openJDK、安装sun/oracle JDK,并卸载centos自带的eclipse并从官网下载eclipse并解压缩到/usr/local. 折腾了好几天了。
据网上朋友说原因是Firefox的依赖包xulrunner(负责网页的渲染的模块)与JRE冲突。
0 条评论。