1 Download eclipse-jee-neon-2-linux-gtk-x86_64.tar.gz in the following path
Http://eclipse.stu.edu.tw/technology/epp/downloads/release/neon/2/eclipse-jee-neon-2-linux-gtk-x86_64.tar.gz
2. Unzip the file into the/OPT directory
[Email protected] local]# TAR-ZXVF eclipse-jee-neon-2-linux-gtk-x86_64.tar.gz-c/opt/
3 Connecting Directories with symbols
[Email protected] local]# ln-s/opt/eclipse/eclipse/usr/bin/eclipse
注意
Symbolic link Usage ln-s source file destination file,-S is symbolic meaning (symbolic) soft Connect
Symbolic links work by creating a special type of file that will only generate a mirror image of a file in the location you selected. Its function is to create a synchronized link for a file in another location. When we need to use the same file in different directories, we don't need to put a file in every required directory, we just put the file in a fixed directory, and then The other directory uses the ln command to link it so that it does not have to use disk space repeatedly. Similar to the shortcut keys under Windows, so you can open the software without knocking at the terminal.
If you use LS to look at a directory, found that there is a file at the end of a @ symbol, that is a file generated with the LN command, with the ls-l command to check, you can see the path of the link shown
The command means that a synchronization connection is created in the/usr/bin/eclipse directory, and the source file is in the/opt/eclipse/eclipse directory
lrwxrwxrwx. 1 root root 20 March 19:00 Eclipse-/opt/eclipse/eclipse
4 editing a shortcut to start eclipse
Vi/usr/share/applications/eclipse.desktop
5 Modify the Eclipse.ini file and add the following at the beginning
-vm
/usr/java/jdk1.8.0_121/jre/bin/java
Install eclipse under CENTOS7