1.下載最新版 Eclipse:
官方下載:http://www.eclipse.org/downloads/
2.解壓下載的壓縮包:
$sudo tar xvfz eclipse-SDK-3.1.2-linux-gtk.tar.gz -C /opt
這個時候,就可以在 /opt 文件夾中看到出現了一個eclipse的文件夾,雙擊其中的eclipse文件就可以運行eclipse了。
3.在菜單設置Eclipse選項: $gedit ~/.local/share/applications/eclipse-user.desktop
插入一下內容:
[Desktop Entry]
Comment=Java IDE
Name=Eclipse
Exec=/opt/eclipse/eclipse
Encoding=UTF-8
Terminal=false
Type=Application
Categories=Application;Development;
Icon=/opt/eclipse/icon.xpm