1. 安装Oracle JDK,参考http://blog.csdn.net/uxh2007/article/details/8762650
2. 从官方网站上去下载eclipse linux版本:(网站:http://www.eclipse.org/downloads/)。个人下载的版本为eclipse-SDK-4.2.2-linux-gtk.tar.gz。
3.解压eclipse至/opt文件夹
$sudo tar xvfz path/to/your/eclipse-SDK-4.2.2-linux-gtk.tar.gz -C /opt
4.在应用程序中创建启动图标
sudo gedit /usr/share/applications/eclipse.desktop
4.1 将下列代码复制并保存
[Desktop Entry]
Name=eclipse
Name[zh_CN]=eclipse
Comment=eclipse Client
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;
Encoding=UTF-8
StartupNotify=true
4.2修复文件权限
sudo chmod 777 /usr/share/applications/eclipse.desktop