---
title: "Ubuntu 中安装 Eclipse "
author: "BestUpon"
date: "2010-06-22T14:08:05Z"
tags: []
categories: ["非技术"]
slug: "ubuntu-eclipse"
draft: false
lastmod: "2010-06-22T14:20:38Z"
id: 696420
url: "https://bestupon.iteye.com/blog/696420"
---

前面说了怎么样安装JDK之后，我们就要安装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。在桌面上创建启动图标；在桌面（右键单击桌面-&gt;创建启动器）；然后选择

名称：Eclipse Platform  
命令：eclipse  
图标： /opt/eclipse/icon.xpm（ubuntu 10.04 上面有个图标，点击之后，选择路径）

 

5\. 在应用程序中创建启动图标：

```
sudo gedit /usr/share/applications/eclipse.desktop
```

 然后在弹出的文件中输入：

```
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse Platform
Comment=Eclipse IDE
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
```

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