在Ubuntu 7.10上安装Eclipse 3.3.1


在Ubuntu 7.10上安装Eclipse 3.3.1之前,请确保已经正确安装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

相关内容