红联Linux门户
Linux帮助

Ubuntu添加Eclipse应用

发布时间:2014-12-05 14:58:03来源:linux网站作者:linux人

Ubuntu中安装好了Eclipse,怎么将他添加到应用程序中呢?


这么做:

在终端中敲入:sudo gedit /usr/share/applications/Eclipse.desktop


在打开的GEdit中输入以下文本

[Desktop Entry]
Name=Eclipse
Comment=Eclipse 3.42 IDE
Exec=/usr/java/eclipse/eclipse    <— 这里改成你的eclipse的安装位置
Icon=/usr/java/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;Development;


关闭保存,这样就在应用程序中添加了一个叫编程的子菜单,里面就有我的Eclipse。