1、下载eclipse,解压到/opt/eclipse
2、在.local/share/applications下建立eclipse.desktop,内容为:
[Desktop Entry]
Version=1.0
Type=Application
Name=Eclipse
Icon=/opt/eclipse/icon.xpm
Exec="/opt/eclipse/eclipse" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartWMClass=eclipse
3、如果需要所有人可见,可以将eclipse.desktop放到/usr/share/applications目录下。