Install eclipse in Ubuntu

Source: Internet
Author: User
Tags gtk sdo
I wrote a Linux article about how to configure eclipse a long time ago. I used to post it on a school forum. Now, I also put it here, which is an aggregate resource.

1. First of all, download the eclipse compressed package. Here I download the version 3.1.2
Eclipsesdk3.1.2: Click to download eclipse-SDK-3.1.2
Since I mainly use eclipse for Java learning, I just downloaded the following plug-ins. Note that the use of VE must be used with the EMF and GEF of a specific version.
Emf2.1.0: Click to download emf-2.1.0
Gef3.1: Click to download gef-3.1
Ve1.1.0: Click to download ve-1.1.0
Of course, if you want to write a C/C ++ program, you can download the following plug-in.
Cdt3.0.2: Click to download cdt-3.0.2
2. Let's talk about a relatively easy-to-use method:
You only need to decompress the downloaded eclipsesdk package and the package of each plug-in any folder to use eclipse. First, go to the directory with a compressed package,
$ CD/directory of the downloaded eclipse-sdk-3.1.2-linux-gtk.tar.gz compressed file
Run the following command:

$ Sudo tarxvfz eclipse-SDK-3.1.2-linux-gtk.tar.gz-C/OPT
$ Sudo unzip-D/OPT emf-sdo-runtime-2.1.0.zip
$ Sudo unzip-D/OPT GEF-runtime-3.1.zip
$ Sudo unzip-D/OPT VE-SDK-1.1.0.1.zip
$ Sudo tarxvfz org.eclipse.cdt-3.0.2-linux.x86.tar.gz-C/OPT

At this time, you can see an eclipse folder in the/OPT folder. Double-click the eclipse file to run eclipse.
If you want to see the eclipse option in the menu bar, you can write the following file:
$ Gedit ~ /. Local/share/applications/eclipse-user.desktop
[Desktop entry]
Comment = Java ide
Name = eclipse
Exec =/opt/Eclipse/eclipse
Encoding = UTF-8
Terminal = false
Type = Application
Categories = application; development;
Icon =/opt/Eclipse/icon. XPM
This method of installing eclipse is fast and convenient. The disadvantage is that the plug-in is not easy to manage. Because they all decompressed to the plugins and features folders and mixed them together.
3. An installation method that facilitates plug-in management and accelerates eclipse startup loading (although tedious, mongo_^ is recommended)

$ Sudo mkdir/opt/Eclipse/Links
$ Sudo mkdir/opt/Eclipse/Addons

The links directory stores the. Link file pointing to each plug-in, and the Addons directory stores each plug-in.

$ Sudo mkdir/opt/Eclipse/Addons/EMF
$ Sudo mkdir/opt/Eclipse/Addons/GEF
$ Sudo mkdir/opt/Eclipse/Addons/ve
$ Sudo mkdir/opt/Eclipse/Addons/CDT

The above command creates a directory for storing various plug-ins

$ Sudo unzip-D/opt/Eclipse/Addons/EMF emf-sdo-runtime-2.1.0.zip
$ Sudo unzip-D/opt/Eclipse/Addons/GEF GEF-runtime-3.1.zip
$ Sudo unzip-D/opt/Eclipse/Addons/ve VE-SDK-1.1.0.1.zip
$ Sudo tarxvfz org.eclipse.cdt-3.0.2-linux.x86.tar.gz-C/opt/Eclipse/Addons/CDT

The above command decompress the compressed packages of each plug-in to the corresponding directory. Next, you need to generate an empty. eclipseextension file in the eclipse directory of each plug-in.

$ Sudo VI/opt/Eclipse/Addons/EMF/Eclipse/. eclipseextension
$ Sudo VI/opt/Eclipse/Addons/GEF/Eclipse/. eclipseextension
$ Sudo VI/opt/Eclipse/Addons/ve/Eclipse/. eclipseextension
$ Sudo VI/opt/Eclipse/Addons/CDT/Eclipse/. eclipseextension

Next, go to the links directory and create a. Link file for each plug-in.

$ Sudo gedit/opt/Eclipse/links/EMF. Link
Path =/opt/Eclipse/Addons/EMF
$ Sudo gedit/opt/Eclipse/links/GEF. Link
Path =/opt/Eclipse/Addons/GEF
$ Sudo gedit/opt/Eclipse/links/ve. Link
Path =/opt/Eclipse/Addons/ve
$ Sudo gedit/opt/Eclipse/links/CDT. Link
Path =/opt/Eclipse/Addons/CDT

If you want to see the eclipse option in the menu bar, you can write the following file:
$ Gedit ~ /. Local/share/applications/eclipse-user.desktop
[Desktop entry]
Comment = Java ide
Name = eclipse
Exec =/opt/Eclipse/eclipse
Encoding = UTF-8
Terminal = false
Type = Application
Categories = application; development;
Icon =/opt/Eclipse/icon. XPM
After starting eclipse in this way, if eclipse does not recognize these plug-ins, you can set the path of each plug-in help> Software Updates> Manage configuration.
Success! ^_^ Haha

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.