Centos7 Installing eclipse
Eclipse is an integrated development environment (IDE) that includes a base workspace and an extensible plug-in system for customizing the environment. Most are written in Java, and Eclipse can be used to develop applications. Through various plugins, Eclipse can also be used in other programming languages to develop applications: Ada, ABAP, C, C + +, COBOL, Fortran, Haskell, JavaScript, Lasso, Natural, Perl, PHP, Prolog, Python, Ruby, Scala, Clojure, Groovy, Scheme, and Erlang. It can also be used to develop Mathematica packages. The development environment includes the Eclipse Java Development tool (JDT) that supports Java with scala,eclipse CDT C + + and Eclipse PDT PHP, and so on.
Install 1, install Java
install java
Yum (full name Yellow dog Updater, Modified
), the ability to automatically download the GZ package from the specified server and install, can automatically handle dependency relationships, and install all dependent software packages at once, without cumbersome to download, install. Yum provides commands to find, install, and delete one, a group, or even all of the packages, and the commands are concise and well-remembered.
The order form of Yum is generally as follows:yum [options] [command] [package ...]
The options are optional, including-H (Help),-y (when the installation process prompts you to select all "Yes"),-Q (does not show the installation process), and so on. [command] for the action you want to take, [package ...] Is the object of the operation.
Yum is an automated installation system for Linux systems
Yum install installs only the specified software
2. Check the Java version
java -versionjava version "1.7.0_51" OpenJDK Runtime Environment (rhel-2.4.5.5.el7-x86_64 u51-b31)OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
Java-version viewing versions of Java
3, download the Eclipse-luna version of the compressed package and unzip
Http://www.eclipse.org/downloads/download.php?file=/technology/epp/dow ...
/opt 表示解压到/opt目录下,加了-C,后面要添加路径
4. Use the symbol to connect the directory
ln -s /opt/eclipse/eclipse /usr/bin/eclipse eclipse与/usr之间有空格
注意
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 a different directory, we do not need to put in each required directory must be the same file, we just put in a fixed directory, the file, and then in other directories with the ln command link (link) it can , you do 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
5. Create a desktop launcher
vim /usr/share/applications/eclipse.desktop
VI opens with a new file
Add the following code
[desktop Entry] encoding=UTF-8 name=eclipse 4.4.1 comment= eclipse Luna exec=/usr/bin/eclipse Span class= "hljs-setting" >icon=/opt/eclipse/icon.xpm Categories=application;development; Java;ide version=1.0 type=application terminal= 0
Above is the application that displays eclipse in CentOS, and describes it, such as encoding, naming, displaying icons, versions, types
6. Check if eclipse is added to the application
Run Eclipse
Complete!!!
Centos7 Installing eclipse