Learning error -- ubuntu 14.04 LTS startup eclipse error, 14.04 eclipse
When eclipse is started in ubuntu, the following error occurs: (Eclipse: 15978): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G _ IS_DBUS_CONNECTION (connection) 'failed.
Cause of error: this error occurs because the environment variable configuration is incorrect. Although the environment variable is configured in/etc/profile during JDK installation, it is not configured ~ /. Profile.
First, describe/etc/profile ~ /. Profile/etc/bashrc ~ /. Bashrc 4:
/Etc/profile is prepared for each user of the system. If you want to set each user of the local machine, you can set it in/etc/profile.
~ /. Profile is the setting file for a single user.
/Etc/bashrc is the setting file for all bash shell users.
~ /. Bashrc is the system setting file for a single user.
In this error, when the su command is used to switch from a common user to the root user, the environment variable used by the root user is normal ~ /. Profile environment variable. This environment variable is not set when JDK is installed.
Solution:
Start eclipse directly under normal user conditions, or do not use the su command to enter the root, but use the su-command to enter the root.
The "-" parameter in su-indicates that su enables a login Shell instead of non-login shell ).