Installation steps:
First, download the client:
Because the official website closed Linux support, only to Huajun software Park to download, address:
Http://www.onlinedown.net/softdown/558344_2.htm
Unzip and put into,/opt/java/eclipse directory, decompression method reference previous article "Ubuntu Configuration Java JDK"
Second, open eclipse:
Open terminal, input,cd/opt/java/eclipse
./eclipse
Can be used, but has not been added to the shortcut, currently only use this method to open.
Third, create a shortcut to eclipse:
Open Terminal input:gedit eclipse.desktop
In the Open text file, enter:
[Desktop Entry]
version=1.0
Type=application
Name=eclipse
Name[zh_cn]=eclipse
Comment=eclipse
Comment[zh_cn]=eclipse
Exec=/home/tecn/adt-bundle-linux-x86_64-20140321/eclipse/eclipse
icon=/home/tecn/adt-bundle-linux-x86_64-20140321/eclipse/icon.xpm
Terminal=false
Save, return to terminal input again:sudo cp eclipse.desktop/usr/share/applications/
Open Dash, search Eclipse, get a shortcut, but I opened the program prompt did not find the JRE, so also to do the next configuration,
However, it has been shown that the shortcut was established successfully.
Iv. associating the JRE to eclipse
After completing the above operation, open eclipse in dash and prompt for the JRE not found,
First look at my environment variables:
Export JAVA_HOME=/OPT/JAVA/JDK
Export Classpath=${java_home}/lib:.
Export Path=${java_home}/bin: $PATH
Because my java_home is already configured as the JDK's installation directory, just create a soft connection in the Eclipse directory, connect to the JDK directory,
In terminal input:cd/opt/java/eclipse
sudo ln-sf $JAVA _home/jre
Finish, open eclipse in dash and open it smoothly.
Note:
After the installation of the second step, found that the software can not be used, the phenomenon is the new project, the software will die, there are online to find the following solutions:
Eclipse cannot be set up in ubuntu16.04 and new project card dead solution
1. Open terminal (terminal) and enter the following command:
export SWT_GTK3=0
2.然后进入eclipse的目录下 ,用gedit打开eclipse,ini文件,对其进行如下修改:
Cd/opt/java/eclipse = This is my installation directory.
sudo gedit Eclipse.ini
3. In front of the following line:
--launcher.appendVmargs
Add the following two lines of statements:
--launcher. Gtk_version
2
The next step is to work perfectly.
Ubuntu Install Eclipse