环境:
Ubuntu 9.10
Eclipse eclipse-jee-galileo-SR2-linux-gtk
当我登录 ubuntu 并运行 eclipse 时,它可以工作。但是当我更改为root用户然后启动eclipse时,出现错误:
(eclipse:5632): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(eclipse:5632): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(eclipse:5632): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:5632): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window
(eclipse:5632): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window
(eclipse:5632): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:5632): Gdk-CRITICAL **: gdk_display_get_pointer: assertion `GDK_IS_DISPLAY (display)' failed
(eclipse:5632): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window
(eclipse:5632): Gdk-CRITICAL **: gdk_screen_get_n_monitors: assertion `GDK_IS_SCREEN (screen)' failed
(eclipse:5632): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window
(eclipse:5632): Gdk-CRITICAL **: get_monitor: assertion `GDK_IS_SCREEN (screen)' failed Segmentation fault
但是当我以 root 身份登录 Ubuntu 并运行 eclipse 时,就可以了。我换了另一个非root用户,也有错误。
如何处理这个问题。我期待着您的回复。谢谢。
最佳答案
你永远不应该以普通用户的身份使用你的 root 帐户。请改用 Ubuntu 的“sudo”命令。
顺便说一句,错误是您以用户身份登录并且您正在从终端使用 root,因此 root 找不到屏幕。
您也不应该以 root 身份使用 Eclipse,为什么要使用您的 root 帐户进行开发?这是疯话!!
希望这可以帮助。不要使用根。
关于eclipse - 启动eclipse,出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3030982/