In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to configure the installation of eclipse in Ubuntu. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. The first step is to download the compressed package of Ubuntu eclipse, which I downloaded here is version 3.1.2
EclipseSDK3.1.2: click to download eclipse-SDK-3.1.2
Since I mainly use Ubuntu eclipse to learn Java, I just downloaded the following plug-ins. It is important to note that the use of ve can only be used with specific versions of emf and gef.
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, you can download the following plugin if you want to use it to write the CCMG + program.
CDT3.0.2: click to download cdt-3.0.2
2. Let's start with a more convenient approach:
You only need to unzip the downloaded EclipseSDK package and the plug-in package in any folder and you can use Ubuntu eclipse. First, go to the directory with the compressed package.
$cd / the directory where the downloaded eclipse-SDK-3.1.2-linux-gtk.tar.gz zip file is located
Then execute the following command:
$sudo tar xvfz 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 tar xvfz org.eclipse.cdt-3.0.2-linux.x86.tar.gz-C / opt
At this point, you can see a Ubuntu eclipse folder in the / opt folder, and double-click the Ubuntu eclipse file in it to run eclipse.
If you want the Eclipse option to appear 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, but the disadvantage is that plug-ins are not easy to manage. Because they are all unzipped into plugins and features folders and mixed together.
3. An installation method which is convenient for plug-in management and can speed up Ubuntu eclipse startup and loading.
$sudo mkdir / opt/eclipse/Links
$sudo mkdir / opt/eclipse/AddOns
The .link file pointing to each plug-in is stored in the Links directory and each plug-in is stored in the AddOns directory.
$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 specific directory for each plug-in
$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 tar xvfz org.eclipse.cdt-3.0.2-linux.x86.tar.gz-C / opt/eclipse/AddOns/cdt
The above command unzips each plug-in package to the corresponding directory, and then you need to generate an empty .eclipseextension file in the Ubuntu 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 to create .link files 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 the Ubuntu eclipse option to appear 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 Ubuntu eclipse in this way, if Ubuntu eclipse does not recognize these plug-ins, you can set the path to each plug-in in select Help- > Software Updates- > Manage Configuration.
Thank you for reading! This is the end of this article on "how to configure and install eclipse in Ubuntu". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.