Setting up the launcher (shortcut) process on the Ubuntu 12.04 Desktop explains:
As shown, both Eclipse and Sqldeveloper can be opened directly by double-clicking them, and the initiators of those applications are under the/usr/share/applications folder and are then copied to the desktop.
Here's how to set up this startup mode for your application under/usr/share/applications: Take Sqldeveloper as an example
Terminal into the/usr/share/applications,
New File Gedit Eclipse.desktop
Add the following content:
[Desktop Entry]
Name=eclipse
Comment=eclipse
Exec=/home/hadoop/eclipse/eclipse
icon=/home/hadoop/eclipse/icon.xpm
Terminal=false
Type=application
Categories=application;development;
The above exec represents the command executed after double-clicking, and icon indicates the icons displayed, which are usually provided after the program is installed.
This makes it easy to start eclipse from the desktop later.
Setting up the Launcher (shortcut) on Ubuntu 12.04 Desktop