Ubuntu安装Eclipse

###①下载地址
eclipse官方下载

###②解压到/opt

1
cd /opt/ && sudo tar -zxvf ~/下载/eclipse(根据下载的版本号填写)

###③创建快捷方式

1
gksudo gedit /usr/share/applications/eclipse.desktop

录入下述内容

1
2
3
4
5
6
7
8
9
10
[Desktop Entry]
Name=Eclipse 4
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

###④作jre的软链接

1
2
cd /opt/eclipse
ln -sf /usr/lib/jvm/java-8u45-sun/jre

###⑤、使用方式
用搜索栏搜索到eclipse,打开即可,可以选择拖拽到左侧快速启动栏