First, install the OPENJDK
1. Find an installable version of OPENJDK
Yum Search OpenJDK
2. Installing OPENJDK
Yum Install java-version number-OPENJDK
3. See if the installation was successful
Java-version
Second, download eclipse
1. Login http://www.eclipse.org/downloads/
2. Go to eclipse IDE for C + + developers page
3. Select Download Linux version Eclipse CDT
Third, install Eclipse
1. Move the Eclipse installation package (compressed package) to the/tools directory of the Linux system
32-bit eclipse:eclipse-cpp-mars-r-linux-gtk.tar.gz
64-bit eclipse:eclipse-cpp-mars-r-linux-gtk-x86_64.tar.gz
2. Unzip Eclipse
Tar Zxvf/tools/eclipse Compressed Package-c/usr/local
3. Add Eclipse Launcher (such as Windows shortcuts) to the desktop
Path to eclipses:/usr/local/eclipse/eclipse
Iv. Creating desktop icons
Create an Eclipse executable file in the path
sudo touch/usr/bin/eclipse
sudo chmod 755/usr/bin/eclipse
Sudoedit/usr/bin/eclipse
Add the following content
650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M02/7E/53/wKioL1b8x0iRunZOAACk0-rUXfY876.jpg "title=" 980. JPG "alt=" Wkiol1b8x0irunzoaack0-ruxfy876.jpg "/>
Text Editor Enter code to create icon
Sudoedit/usr/share/applications/eclipse.desktop
In the open file, write the following options, specifically
Name for your icon display;
Comment notes,
Encoding encoding method,
EXEC is the full command launched from the shell, the execution file of the third-party software,
Icon for icons
Categories category for Icons
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/7E/57/wKiom1b8x_aArpMOAAGcyEOn2rg612.jpg "title=" 09.JPG "alt=" Wkiom1b8x_aarpmoaagcyeon2rg612.jpg "/>
The Eclipse icon appears in the menu, the right mouse button is set to the desktop, and the Eclipse icon in the desktop is clicked to launch Eclipse .
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7E/57/wKiom1b8yPHxLztiAACD80nrZxY247.jpg "title=" 67.JPG "alt=" Wkiom1b8yphxlztiaacd80nrzxy247.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7E/57/wKiom1b8yTKCxhMiAACJrpzyAQY772.jpg "title=" 76.JPG "alt=" Wkiom1b8ytkcxhmiaacjrpzyaqy772.jpg "/>
Linux installs Eclipse and the desktop icon