Centos7 Installing eclipse

Source: Internet
Author: User

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.

installationInstalling Java

yum install java

Check the Java version

java -version

" 1.7.0_51 " OpenJDK Runtime Environment (Rhel-2.4. 5.5. el7-x86_64 u51-24.51-b03, Mixed mode)
Download the Eclipse-luna version of the package and unzip it

Http://www.eclipse.org/downloads/download.php?file=/technology/epp/dow ...

解压到/opt 目录下

tar -zxvf eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz -C /opt

/opt 表示解压到/opt目录下,加了-C,后面要添加路径

using the Symbolic connection 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 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

Create a desktop launcher

vim /usr/share/applications/eclipse.desktop

VI opens with a new file

Add the following code

[Desktop entry]encoding=utf-8Name4.4. 1 Comment=Eclipse lunaexec=/usr/bin/eclipseicon=/opt/eclipse/icon.xpmcategories =application;development; Java;ideversion=1.0Type=applicationterminal=0

Above is the application that displays eclipse in CentOS, and describes it, such as encoding, naming, displaying icons, versions, types

Reference Address: 1190000002651775

Centos7 Installing eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.