今天升级了ubuntu14.04,让同事把eclipse的包打包发给我,之前这样就可以直接用了,不用配其他的。
但是今天一进去,就会出现如下情况:比如 String str ;
第二行写str.;在这个点的时候eclipse会自动联想string的函数,此时就会闪退
看了log:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f4b000dc2a1, pid=10873, tid=139962777425664
#
# JRE version: OpenJDK Runtime Environment (7.0_85-b01) (build 1.7.0_85-b01)
# Java VM: OpenJDK 64-Bit Server VM (24.85-b03 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.1
# Distribution: Ubuntu 14.04 LTS, package 7u85-2.6.1-5ubuntu0.14.04.1
# Problematic frame:
# C [libsoup-2.4.so.1+0x6c2a1] soup_session_feature_detach+0x11
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
看得我恍恍惚惚,开始以为版本不对,自己下载了个,还是这样,又重新配置jdk,也没有变化。只好百度。
百度之后有人提示是gtk版本不对,于是需要在eclipse.ini文件末尾添加 -Dorg.eclipse.swt.browser.DefaultType=mozilla(修改eclipse的默认浏览器内核为Mozilla),完成,重启生效。