在将eclipse-SDK-3.7.2-​​Linux​​-gtk.tar.gz解压到某个目录下之后,命令行进行如下编辑

vi /usr/share/applications/eclipse.desktop

添加如下内容:

[Desktop Entry]

Type=Application

Name=eclipse

Exec=/opt/eclips/eclipse  //eclipse存放路径

GenericName=eclipse

Comment=​​Java​​ development tools

Icon=/opt/eclipse/icon.xpm  //eclipse存放路径

Categories=Application;Development;

Terminal=false

然后保存,可以在application->development下面看到eclipse选项