在安裝eclipse之前,請確保已經正確安裝JDK。
Download Eclipse SDK from its main site (Choose Eclipse Classic) :
http://www.eclipse.org/downloads/
Extract the eclipse download and move to /opt.
如果想把eclipse目錄的更改為root擁有,可以執行下面的命令
sudo chown -R root:root /opt/eclipse
當然也可以不用。
Then create an eclipse executable
sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
Create the file
sudoedit /usr/bin/eclipse
With the content:
#!/bin/sh
export MOZILLA_FIVE_HOME=」/usr/lib/mozilla/」
export ECLIPSE_HOME=」/opt/eclipse」
$ECLIPSE_HOME/eclipse $*
If you use gnome, create a shortcut
sudoedit /usr/share/applications/eclipse.desktop
With the content :
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
在桌面或者啟動面板上添加圖標:
在桌面(右鍵單擊桌面->創建啟動器)或面板(右鍵單擊面板->添加到面板 ->定製應用程序啟動器)上創建一個新的啟動器,然後添加下列數據:
名稱:Eclipse Platform
命令:eclipse
圖標:/opt/eclipse/icon.xpm
[火星人
]
在Ubuntu 7.10中安裝Eclipse 3.3.1已經有232次圍觀
http://coctec.com/docs/linux/show-post-182305.html