Ubuntu14.10安装Eclipse

时间:2024-08-22 18:04:02

方法一:(缺点是安装时附加openjdk等大量程序并无法去除,优点是安装简单)

$ sudo apt-get install eclipse

方法二:(优点是安装内容清爽,缺点是配置麻烦)

1、安装JDK,参考 Ubuntu 14.10 下安装 JDK8

2、下载 Eclipse

从 http://www.eclipse.org/downloads/index-developer.php下载合适版本,如:Eclipse IDE for C/C++ Developers

3、解压文件

$ sudo mv eclipse-cpp-luna-R-linux-gtk-x86_64.tar.gz /usr/prog/

$ cd /usr/prog/

$ sudo tar -zxvf eclipse-cpp-luna-R-linux-gtk-x86_64.tar.gz

$ sudo rm ./eclipse-cpp-luna-R-linux-gtk-x86_64.tar.gz

4、创建启动快捷方式

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

内容如下:

[Desktop Entry]

Type=Application

Name=Eclipse

Comment=Eclipse Integrated Development Environment

Icon=/usr/prog/eclipse/icon.xpm

Exec=/usr/prog/eclipse/eclipse

Terminal=false

Categories=Development;IDE;Java;