Learning error -- ubuntu 14.04 LTS startup eclipse error, 14.04 eclipse

Source: Internet
Author: User

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 ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.