方法很简单,只是记录一下:
1)首先,关闭Eclipse和做到这一点:
sudo gedit /usr/share/applications/eclipse.desktop
在这个文件的末尾只是复制粘贴下面内容:
- [Desktop Entry]
- Categories=Development;
- Comment[zh_CN]=
- Comment=
- Exec=/usr/local/java/eclipse/eclipse
- GenericName[zh_CN]=IDE
- GenericName=IDE
- Icon=/usr/local/java/eclipse/icon.xpm
- MimeType=
- Name[zh_CN]=eclipse
- Name=eclipse
- Path=
- StartupNotify=true
- Terminal=false
- Type=Application
- X-DBUS-ServiceName=
- X-DBUS-StartupType=
- X-KDE-SubstituteUID=false
- X-KDE-Username=owen
- Exec=env UBUNTU_MENUPROXY= /usr/local/java/eclipse/eclipse