The complete process for installing eclipse in CentOS 7

Source: Internet
Author: User
Tags gtk centos

1. Download the Eclipse archive package

Download Path http://mirrors.neusoft.edu.cn/eclipse/technology/epp/downloads/release/luna/SR2/ Eclipse-jee-luna-sr2-linux-gtk-x86_64.tar.gz

(The general file will be saved in the/home/[username]/download directory after the download is complete)


2. Go to the command line interface to see if Java is installed properly. (General CentOS 7 default is installed OPENJDK)

[Root@localhose] #java-version

If you see a message similar to the following, Java is installed properly and you can skip step 3.

OPENJDK Version "1.8.0_151"

OpenJDK Runtime Environment (build 1.8.0_151-b12)

OpenJDK 64-bit Server VM (build 25.151-b12, Mixed mode)


3. Install Java

[Root@localhose] #yum install Java


4. Unzip the eclipse package into the OPT directory

[ROOT@LOCALHOSE DOWNLOAD] #tar-zxvf eclipse-jee-luna-sr2-linux-gtk-x86_64.tar.gz-c/opt


5. Link the Eclipse execution file to the user directory
[ROOT@LOCALHOSE DOWNLOAD] #ln-S/opt/eclipse/eclipse/usr/bin/eclipse


6. Create a startup item
[ROOT@LOCALHOSE DOWNLOAD] #vi/usr/share/applications/eclipse.desktop


Add the following code:
[Desktop Entry]
Encoding=utf-8
Name=eclipse 4.4.2
Comment=eclipse Luna
Exec=/usr/bin/eclipse
icon=/opt/eclipse/icon.xpm
Categories=application;development; Java;ide
version=1.0
Type=application
Terminal=0


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.