-
sudo mkdir /opt/jvm
-
sudo tar zxvf eclipse-jee-neon-2-linux-gtk-x86_64.tar.gz -C /opt/jvm
-
cd /opt/jvm/eclipse/
-
sudo mkdir jre
-
cd jre/
-
sudo ln -s /usr/lib/jvm/jdk1.8.0_121/bin bin
- cd /usr/share/appplications/
-
sudo touch eclipse.desktop
-
sudo vi eclipse.desktop
- sudo gedit eclipse.desktop
11.输入以下内容:
[Desktop Entry]
Name=Eclipse
Comment=c project manage software
Exec=/opt/jvm/eclipse/eclipse
Icon=/opt/jvm/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;GTK;Office;Eclipse
- 按Esc按鍵,輸入:wq
13.sudo gedit /usr/share/applications/eclipse.desktop
执行:sudo chmod u+x eclipse.desktop 将其变为可执行文件.
sudo ln -sf $JRE_HOME jre