使用eclips开发java时的闪退问题_移动开发_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > 移动开发 > 使用eclips开发java时的闪退问题

使用eclips开发java时的闪退问题

 2014/6/4 12:33:48  paky.du  博客园  我要评论(0)
  • 摘要:最近开始android的开发学习,当然要先从java入手了。我选择eclips作为开发的IDE,在测试java代码样例时,如果我的代码是可以出现系统自动代码补齐时eclips就会立刻闪退。刚开始不知道怎么回事以为是自己不小心误操作吧界面给关了,可是发生了好几次。之后通过shell把eclips启动,这时可以看到eclips闪退时的log:paky@paky-ubuntu:~/android/eclipse$
  • 标签:使用 Java 问题 开发

最近开始android的开发学习,当然要先从java入手了。我选择eclips作为开发的IDE,在测试java代码样例时,如果我的代码是可以出现系统自动代码补齐时eclips就会立刻闪退。

刚开始不知道怎么回事以为是自己不小心误操作吧界面给关了,可是发生了好几次。之后通过shell把eclips启动,这时可以看到eclips闪退时的log:

paky@paky-ubuntu:~/android/eclipse$ ./eclipse
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xa110186d, pid=7618, tid=3075786496
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b14) (build 1.7.0_55-b14)
# Java VM: OpenJDK Client VM (24.51-b03 mixed mode, sharing linux-x86 )
# Problematic frame:
# C [libsoup-2.4.so.1+0x5486d] soup_session_feature_detach+0x1d
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/paky/android/eclipse/hs_err_pid7618.log
#
# 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.
#
已放弃 (核心已转储)
paky@paky-ubuntu:~/android/eclipse$ ./eclipse

 到网上了了很多方法来解决这个问题,最后发现有人说要在eclips.ini里面增加:-Dorg.eclipse.swt.browser.DefaultType=mozilla

从字面来看就是解决IDE的自动补齐函数和变量的浏览插件缺省要用mozilla。照着这个方法试试,果然问题消失了。

 

上一篇: 有图有真相:中国发现世上最古老裤子 下一篇: 没有下一篇了!
发表评论
用户名: 匿名