1.
$ sudo gedit /usr/share/applications/eclipse.desktop
2.在eclipse.desktop文件中输入:
* Notice* :下面文本中的每一行结尾不能留空格。
[Desktop Entry]
Name=Eclipse Java EE
Comment=Eclipse IDE for Java EE
Exec=/home/reallocing/SoftwareInstall/eclipse/eclipse
Icon=/home/reallocing/SoftwareInstall/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;Development;
3.赋权
chmod u+x /usr/share/applications/eclipse.desktop
4.将快捷方式拖入到方便你启动的位置即可,比如说桌面,或者导航条里。