Walk by faith code, hack, curious

在Ubuntu 10.04 LTS 上安装Eclipse3.7

1) 下载eclipse.

2) 解压

tar xzf eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz

或者直接右键解压

3) 移动到以下目录:

mv eclipse /opt/
sudo chown -R root:root eclipse
sudo chmod -R +r eclipse

4) 添加Eclipse 的运行路径

sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudo nano /usr/bin/eclipse

粘贴下面的到文件中:

#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

F3保存,F2退出

5) 创建一个快捷方式:

sudo nano /usr/share/applications/eclipse.desktop

贴下面的内容:

[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

F3.F2

6) 第一次运行Eclipse

/opt/eclipse/eclipse -clean &