简体   繁体   English

Eclipse无法在Linux上启动:Java致命错误

[英]Eclipse can't start on Linux: Java Fatal Error

I installed eclipse standard luna on debian 7 by extracting the downloaded .tar.gz to /opt. 我通过将下载的.tar.gz解压缩到/ opt,在debian 7上安装了eclipse标准luna。 When I try to run eclipse the splash screen starts up and disappears after 30 to 60 seconds. 当我尝试运行eclipse时,启动画面会启动并在30到60秒后消失。 The terminal prints out the following error message: 终端打印出以下错误消息:

(java:4821): GLib-GObject-WARNING **: cannot register existing type `GdkDisplayManager'

(java:4821): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(java:4821): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

(java:4821): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(java:4821): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(java:4821): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(java:4821): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(java:4821): GLib-GObject-WARNING **: cannot register existing type `GdkDisplay'

(java:4821): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(java:4821): GLib-GObject-CRITICAL **: g_type_register_static: assertion `parent_type > 0' failed

(java:4821): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(java:4821): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f92eb94c73f, pid=4821, tid=140269436700416
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x5173f]  gdk_display_open+0x3f
#
# 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:
# /tmp/hs_err_pid4821.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

I use oracles jdk 7 64 bit but ran into the same issue when I used openjdk 7 64bit. 我使用oracles jdk 7 64位但在使用openjdk 7 64bit时遇到了同样的问题。

I would be glad if somebody can help me with this issue. 如果有人可以帮我解决这个问题,我会很高兴的。

Try running with -nosplash command line argument. 尝试使用-nosplash命令行参数运行。 This sometimes helps with gtk-java interaction. 这有时有助于gtk-java交互。

1- Open a terminal and go to your eclipse folder . 1- 打开终端转到 eclipse文件夹

2- Run it with: ./eclipse -nosplash 2-运行它: ./ eclipse -nosplash

try adding 尝试添加
--launcher.GTK_version 2 to eclipse.ini in the eclipse downloaded file -launcher.GTK_version 2在eclipse下载的eclipse.ini文件中

-nosplash解决了Debian Stable 7.8 64位,Gnome 3.4.2和Eclipse Luna(直接下载)SR1a。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM