Delete any previous launcher for Eclipse you may have made, this will create a completely new one.
Run these commands:
# Installs gnome-desktop-item-edit, a useful GUI to configure .desktop files
sudo apt-get install --no-install-recommends gnome-panel
# Symlinks eclipse to /usr/local/bin, allowing you to launch it from a command line
# If eclipse is not in /opt, change this to point to your eclipse executable
sudo ln -s /opt/eclipse*/eclipse /usr/local/bin/eclipse
# Creates a new .desktop file in '/usr/share/applications'
sudo gnome-desktop-item-edit --create-new "/usr/share/applications/eclipse-ide.desktop"
put these into the fields, leave others default (You can actually put whatever you want in these, except "Command"):
- Name: "Eclipse IDE"
- Command: Click the Browse button and find the
eclipse executable file
- Icon: Click the springboard icon (towards the top left), then browse to the file
icon.xpm, in the same folder as the
- Note: The default Eclipse icon is very bad with Unity, you can't tell if it's launched or not. I personally use this icon here. Just choose this downloaded icon instead of the default
- Comment: Anything you want, I put (from Wikipedia)
Eclipse is a multi-language IDE comprising a base workspace and an extensible plug-in system for customizing the environment.
Click "OK", then search the Dash for your new icon.
See this screenshot for reference only: