Linux virtual machine with X11 protocol to open the graphical interface of Eclipse

Source: Internet
Author: User
Tags gtk

1. Download Toolkit

Xlaunch (Install to win)
https://xming.en.softonic.com/

Eclipse IDE for C + + developers (extract to/datas/soft/eclipse in virtual machine)
https://www.eclipse.org/downloads/eclipse-packages/?osType=linux&release=undefined

JDK (extracted to/usr/jdk1.8.0_131 in the virtual machine)
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2. Configuring the JDK environment variables

1[Email protected] ~]# vim/etc/Profile #编辑如下2Java_home=/usr/jdk1.8. 0_1313Classpath=.: $JAVA _home/lib/Tools.jar4Path= $JAVA _home/Bin: $PATH5 export Java_home CLASSPATH PATH6 7[Email protected] ~]# source/etc/ Profile8 9[Email protected] ~]# Java-versionTenJava version"1.8.0_131" OneJava (TM) SE Runtime Environment (build1.8.0_131-B11) AJava HotSpot (TM) --bit Server VM (build25.131-B11, Mixed mode)

3. Open X11 Support

1 [[email protected] ~]# vim/etc/ssh/2x11forwarding Yes34 [[email protected] ~]# service sshd restart56 [[email protected] ~]# yum-y
   
    install xorg-x11-
    xauth
    7 [[email protected] ~]# export display=localhost:
    10.0 
   

4, Xshell turn on X11 forwarding

5. Test whether the X11 is connected

1 Yum Install Xclock 2 [[email protected] ~]# Xclock

Under normal circumstances can see the following clock interface, if the error will restart the virtual machine and Xshell retry

6. Start Eclipse

1[Email protected] ~]# cd/datas/soft/Eclipse2[Email protected] eclipse]#.Eclipse3 Eclipse:4An error has occurred. See the logfile5/datas/soft/eclipse/configuration/1500009184940. Log.6[Email protected] eclipse]#Cat/datas/soft/eclipse/configuration/1500009184940. Log7 #错误片段8 java.lang.UnsatisfiedLinkError:Could not load SWT library. Reasons:9/datas/soft/eclipse/configuration/org.eclipse.osgi/429/0/.CP/libswt-pi-gtk-4629. so:libgtk-x11-2.0. So.0: Cannot open sharedObject file: No Suchfileor directoryTenNo SWT-PI-GTKinchJava.library.path One/root/.swt/lib/linux/x86_64/libswt-pi-gtk-4629. so:libgtk-x11-2.0. So.0: Cannot open sharedObject file: No Suchfileor directory ACan'T Load library:/root/.swt/lib/linux/x86_64/libswt-pi-gtk.so -[Email protected] eclipse]#Yum-YInstallgtk+* -[Email protected] eclipse]#.Eclipse the(<UNKNOWN>:2334): pango-warning * *: Failed to choose a font, expect ugly output. Engine-type='PANGORENDERFC', script='Latin' -[Email protected] eclipse]#Yum-YInstallxorg-x11-fonts-Type1 -[Email protected] eclipse]#/eclipse #出现图像界面了, the error is as follows

1[Email protected] eclipse]#Cat/datas/soft/eclipse/configuration/1500009612543. Log2 #错误片段3 java.lang.UnsatisfiedLinkError:Could not load SWT library. Reasons:4/datas/soft/eclipse/configuration/org.eclipse.osgi/429/0/.CP/libswt-pi-gtk-4629. so:libXtst.so.6: Cannot open sharedObject file: No Suchfileor directory5No SWT-PI-GTKinchJava.library.path6/root/.swt/lib/linux/x86_64/libswt-pi-gtk-4629. so:libXtst.so.6: Cannot open sharedObject file: No Suchfileor directory7Can'T Load library:/root/.swt/lib/linux/x86_64/libswt-pi-gtk.so8[Email protected] eclipse]#Yum-YInstalllibxtst9[Email protected] eclipse]#/eclipse #成功启动

Linux virtual machine with X11 protocol to open the graphical interface of Eclipse

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.