Install Eclipse in Ubuntu and Pin to the Launcher

Overview

This is a simple record of the steps I took to install Eclipse Luna in Ubuntu 14.04 and pin to the Launcher for quickly starting Eclipse, anyone want to to do could user these steps for convenient reference.

Install Eclipse in Ubuntu and Pin to the Launcher

I just write down the steps I took to install Eclipse Luna in Ubuntu 14.04 and pin to the Launcher for quickly starting Eclipse. Here is how:

  1. Download Eclipse Luna from this Eclipse Downloads Page, I choose the Eclipse Linux-64-bit version, you can chose as in your case.
  2. Extract the content into /usr/local which is the usual directory where to put the applications installed by ourselves, now you can actually go into the eclipse folder and say start Eclipse in command line by entering ./eclipse, but obviously this is not convenient. We want to pin Eclipse into the launcher so a quick single click could start the Eclipse, let’c continue.
  3. Create a .desktop file to eclipse: vim ~/.local/share/applications/opt_eclipse.desktop
  4. Save the following content into the .desktop file, and if you install Eclipse into some different directory from mine, feel free to change the Icon=xxx, Exec=xxx as you want to fit in your case:
    > [Desktop Entry]
    > Type=Application
    > Name=Eclipse
    > Comment=Eclipse Integrated Development Environment
    > Icon=usr/local/eclipse/icon.xpm
    > Exec=usr/local/eclipse/eclipse
    > Terminal=false
    > Categories=Development;IDE;Java;
    > StartupWMClass=Eclipse

  5. Open that folder with nautilus: nautilus ~/.local/share/applications
  6. Drag the opt_eclipse.desktop file inside applications into the Launcher. And then the Eclipse could be started from the Launcher directly.

Summary

This is a simple record of the steps I took to install Eclipse Luna in Ubuntu 14.04 and pin to the Launcher for quickly starting Eclipse, anyone want to to do could user these steps for convenient reference.

 

Written on March 28, 2015