在ubuntu中,可以在主页中显示的可运行的程序其实都是在/usr/share/applications/*
只需要在此目录下新建一个Eclipse.desktop的文件
#cd /usr/share/applications
#vim Eclipse.desktop
新建文件
1 [Desktop Entry]
2 Name=Eclipse
3 Comment=Eclipse IDE
4 Exec=/home/honeyy/codesoft/adt-bundle-linux-x86_64-20140702/eclipse/eclipse
5 Icon=/home/honeyy/codesoft/adt-bundle-linux-x86_64-20140702/eclipse/icon.xpm
6 Terminal=false
7 Type=Application
8 Categories=Application;Development;
~
其中Exec是eclipes运行程序的目录位置
Icon是图标位置;
然后保存退出,就可以在主页中搜索到Eclipse, 便可以锁定到桌面左边菜单栏中