歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 中安裝 Eclipse

Ubuntu 中安裝 Eclipse

日期:2017/2/28 16:34:32   编辑:Linux教程

前面說了怎麼樣Ubuntu 中安裝JDK之後,我們就要安裝Eclipse;

1。從官方網站上去下載eclipse linux版本:(網站:http://www.eclipse.org/downloads/)。個人下載的是eclipse-jee-galileo-SR2-linux-gtk.tar.gz

2。在終端切換到你的系在目錄:

終端代碼
bestupon@bestupon-laptop:~$ cd 下載
bestupon@bestupon-laptop:~/下載$

3。使用命令:

終端代碼
$sudo tar xvfz eclipse-jee-galileo-SR2-linux-gtk.tar.gz -C /opt

解壓到/opt/eclipe/ 目錄下

4。在桌面上創建啟動圖標;在桌面(右鍵單擊桌面->創建啟動器);然後選擇

名稱:Eclipse Platform
命令:eclipse
圖標: /opt/eclipse/icon.xpm(Ubuntu 10.04 上面有個圖標,點擊之後,選擇路徑)

5. 在應用程序中創建啟動圖標:

終端代碼
sudo gedit /usr/share/applications/eclipse.desktop

sudo gedit /usr/share/applications/eclipse.desktop 然後在彈出的文件中輸入:

Java代碼
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse Platform
Comment=Eclipse IDE
<SPAN >Exec=/opt/eclipse/eclipse</SPAN>
Icon=/opt/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;

保存文件。完成整個安裝過程。可以雙擊桌面 eclipse的圖標來運行eclipse。

Copyright © Linux教程網 All Rights Reserved