eclipse - 启动eclipse,出现错误

标签 eclipse ubuntu

环境:
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 帐户进行开发?这是疯话!!

  • 关于 GNU/Linux-Unix 的第一条规则是您不要使用您的 root 帐户登录以进行日常使用。
  • 关于 GNU/Linux-Unix 的第二条规则是您不要使用您的 root 帐户登录以进行日常使用。
  • 关于 GNU/Linux-Unix 的第三条规则是 RTFM。

  • 希望这可以帮助。不要使用根。

    关于eclipse - 启动eclipse,出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3030982/

    相关文章:

    ubuntu - 从 ubuntu 中的 C++ 代码向 arduino 发送命令

    android - Facebook SDK 4.8.2 导入 ECLIPSE

    java - 数据表-限制输出

    mysql - 无法通过套接字连接到本地 MySQL 服务器(不使用 sudo)

    ubuntu - 如何在服务器中运行 headful puppeteer?

    linux - MongoDB 无法启动 - ***在 fassert() 失败后中止

    android - 在eclipse中无法检测到我的手机来试运行

    java - 在 Eclipse 中打开 ant 文件时出现 AntSecurityException

    java - 我的选项卡小部件不显示图片图标

    PHP系统通知发送