Linux installs Eclipse and the desktop icon

Source: Internet
Author: User
Tags gtk

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

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.