One installation eclipse
The JDK is installed before you can install Eclipse 1. Go to the website to download the appropriate eclipse
My system is ubuntu16.04,jdk1.7.
Download eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz
2. Extract it into the/usr/local folder
sudo tar zxvf eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz-c/usr/local
3. Create the Eclipse Desktop shortcut icon.
CD Desktop
sudo touch eclipse.desktop
sudo vim eclipse.desktop
Then enter the following (note to modify the exec and icon paths):
[Desktop Entry]
Encoding=utf-8
Name=eclipse
Comment=eclipse
Exec=/usr/local/eclipse/eclipse
icon=/usr/local/eclipse/icon.xpm
Terminal=false
Startupnotify=true
Type=application
Categories=application;develop;
4. Turn it into an executable file
sudo chmod u+x eclipse.desktop
two problems encountered
The JVM teminated Exit code=1 appears during the 1.eclipse installation
This problem appears after I switch JDK from 1.8 to 1.7, resolved for two days, although it has been handled well, but at present there is no reason, hope great god advice.
My solution:
Using Eclipse_installer to download and install Eclipse, the older version of the computer is mars2 for the Neon,eclipse_installer reinstall, and Eclipse can be used properly after installation.
But when you restart your computer, you experience the following 2nd question.
2.The Eclipse executable Launcher is unable to locate its companion sh ...
It appears that you installed eclipse with Eclipse_installer, where both the P2 folder and the Plugins folder are in the Eclipse_installer folder, not in the Eclipse folder. The solution given on the web is to modify the startup and library paths of Eclipse.ini, but I still have no effect after my revision.
The Final Solution is:
Go to the official website to download the eclipse_mars2 version, and then follow the first installment of this article again, you can use eclipse normally.