Ubuntu 中安装 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 style="FONT-SIZE: 14px">Exec=/opt/eclipse/eclipse</SPAN> 
Icon=/opt/eclipse/icon.xpm 
Terminal=false
StartupNotify=true
Type=Application 
Categories=Application;Development;

保存文件。完成整个安装过程。可以双击桌面 eclipse的图标来运行eclipse。

猜你喜欢

转载自openopenjava.iteye.com/blog/1473146
今日推荐