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