Ubuntu 11.10下手动安装Eclipse 3.7.1详细步骤:
1. 先下载eclipse-SDK-3.7.1-linux-gtk.tar.gz
http://eclipse.org/downloads
2.解压eclipse-SDK-3.7.1-linux-gtk.tar.gz 到 安装目录 /usr/local/
tar -zxvf eclipse-SDK-3.7.1-linux-gtk.tar.gz /usr/local/
//设置eclipse目录权限为当前用户
sudo chown -R husw:husw eclipse
//一旦你要用root启动的话,设置如下
sudo chown -R root:root eclipse
//命令行启动 解压完成即可启动的
sudo /usr/local/eclipse/eclipse
3. 创建Ubuntu的eclipse菜单(可选)
sudo gedit /usr/share/applications/eclipse.desktop
添加如下内容:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Eclipse3.7.1
Exec=eclipse
TryExec=eclipse
Comment=Eclipse3.7.1,EclipseSDK
Exec=/usr/local/eclipse/eclipse
Icon=/usr/local/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;Development;
此时你已经可以在/usr/share/applications/中看到Eclipse图标
4. 创建启动器
sudo gedit /usr/bin/eclipse
添加如下内容
#!/bin/sh
export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/usr/local/eclipse"
$ECLIPSE_HOME/eclipse $*
添加可执行权限
sudo chmod +x /usr/bin/eclipse