In earlier versions of ubuntu, the shortcut is to create the *. desktop file under the/usr/share/applications Directory, which is also feasible under ubuntu12.04.
1. Create eclipse. desktop in the/usr/share/applications directory. The content is as follows:
[Desktop entry] type = applicationname = eclipsecomment = eclipseicon =/home/Lai/software/Eclipse/icon. xpmexec =/home/Lai/software/Eclipse/eclipseterminal = falsecategories = development; ide; Java;
It is easy to understand that the icon is the path of the icon, and exec is eclipse.ProgramPath.
In previous versions, you can do this later, but to display eclipse on unity, the following two steps are required:
2. After creating the desktop file, open Dash and search for eclipse. The eclipse program appears. Click Open
3. After eclipse is enabled, the eclipse icon will be displayed on the left navigation bar. Right-click and choose lock to the navigation bar.