sudo gedit /usr/share/applications/eclipse.desktop
[Desktop Entry]
Name=Eclipse Platform
Comment=Eclipse IDE
Exec=/usr/local/eclipse/eclipse
Icon=/usr/local/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Development;
我的eclipse在 /usr/local/eclipse 下
[Desktop Entry]
Name=Eclipse Platform
Comment=Eclipse IDE
Exec=/usr/local/eclipse/eclipse
Icon=/usr/local/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Development;
我的eclipse在 /usr/local/eclipse 下