When centos5.5 starts eclipse, the following error occurs: GTK-warning **: cannot open display: 0.0.

Source: Internet
Author: User
Tags gtk centos server

Install eclipse through Yum install eclipse,

When eclipse is executed, the following error occurs:

GTK-warning **: cannot open display: 0.0

The reason is that there is no XWindow available. It is possible that existing applications on the server occupy XWindow.

Solution: Install cygwin/X11 (xinit and Xorg-server) on the PC)

Then start xserver: startxwin on the PC

Iefreer @ iefreer-think/usr/bin $ startxwinwelcome to the xwin x servervendor: The cygwin/X projectrelease: CYGWIN_NT-6.1 iefreer-think 1.7.17 (0.262/5/3) i686os: windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (win32) package: Version 1.20.- 1 built 2012-09-06xwin was started with the following command line: X: 0-multiwindow

Then, set the XWindow displayed on the centos server to the PC.

Export display: 192.168.1.87: 0.0 (assuming your pc ip address is 192.168.1.87)

Finally, start eclipse. If the server reports an error and rejects the connection, run the following command on the PC to add the host of eclipse to the XWindow access list:

Xhost + 192.168.1.152 (your centos IP)

Iefreer

Related Article

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.