一、进入/usr/share/applications目录下
创建eclipse.desktop文件、
输入内容为:
[Desktop Entry]
Encoding=UTF-8
Name=eclipse
Comment=Eclipse IDE
Exec=/usr/local/eclipse/eclipse
Icon=/usr/local/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
Exec=env UBUNTU_MENUPROXY=0 /usr/local/eclipse/eclipse
二、加权限
chmod 777 eclipse.desktop
就可以了!