Linux, Windows, Virtualization, OpenSource & Blogging

How to Install Eclipse 4.7 on CentOS 7 / RHEL 7

4

Eclipse is one of the most widely used IDE (Integrated Development Environment) for the Java application development. Integrated Development Environment or IDE provides many features such as authoring, modifying, compiling, deploying and debugging software.

Eclipse is not only used for developing Java application. It can be used to develop applications in various programming languages including Ada, C, C++, COBOL, Java, Perl, PHP, Python, R, Ruby (including Ruby on Rails framework), Scala, Clojure, Groovy, and Scheme. It can also be used to develop packages for the software Mathematica.

Development environments include the Eclipse Java development tools (JDT) for Java, Eclipse CDT for C/C++ and Eclipse PDT for PHP, among others. A lot of plugins available for Eclipse so that you can extend it’s ability as much as you want.

Requirements

Open Terminal (Applications >> System Tools >> Terminal) Switch to root user.

$ su

Before installing Eclipse, make sure you have installed JDK on your machine.

yum -y install java-1.8.0-openjdk

If you want to use Oracle Java, then:

READ: Install Sun/ Java 1.8 on CentOS 7 / RHEL 7

Download and Install Eclipse

Download latest eclipse package (at the time of writing, v4.7) over a command line using the following command.

curl -O http://ftp.jaist.ac.jp/pub/eclipse/technology/epp/downloads/release/oxygen/1a/eclipse-java-oxygen-1a-linux-gtk-x86_64.tar.gz

Extract Eclipse package to your desired directory (Ex. /opt).

tar -zxvf eclipse-java-oxygen-1a-linux-gtk-x86_64.tar.gz -C /opt

Symlink Eclipse executable to /usr/bin path.

ln -s /opt/eclipse/eclipse /usr/bin/eclipse

Setup Launcher

Create Gnome launcher.

vi /usr/share/applications/eclipse-4.7.desktop

Place the following content in the above file.

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse 4.7
Comment=Eclipse Oxygen
Exec=/usr/bin/eclipse
Icon=/opt/eclipse/icon.xpm
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0

Start Eclipse

Command line:

eclipse

GUI:

On Gnome 3, Application >> Programming >> Eclipse.

Install Eclipse 4.7 on CentOS 7 - Launcher
Install Eclipse 4.7 on CentOS 7 – Launcher

Configure workspace for Eclipse.

Install Eclipse 4.7 on CentOS 7 - Eclipse WorkSpace
Install Eclipse 4.7 on CentOS 7 – Eclipse WorkSpace

Eclipse 4.7 running on CentOS 7:

Install Eclipse 4.7 on CentOS 7 - Eclipse running on CentOS 7
Install Eclipse 4.7 on CentOS 7 – Eclipse running on CentOS 7

That’s All.

You might also like
  • Julien

    Thanks, really helpful post. I did the same for eclipse luna PHP IDE.

    [Desktop Entry]
    Encoding=UTF-8
    Name=Eclipse 4.4.1
    Comment=Eclipse Luna
    Exec=/usr/bin/eclipse
    Icon=/usr/eclipse/icon.xpm
    Categories=Application;Development;php;IDE
    Version=1.0
    Type=Application
    Terminal=0

    only categories Java to be replaced with php;

  • Rosario

    Hi, I can open the program only if I am su. How can I open the program without it?

    • Raj

      Hi,

      Change the permission of the installed directory.

  • SeB

    Staight-Through. Many thanks. Except Raj chmod 755 before untar as usual.

How to Install Eclipse 4.7 on CentOS 7 / RHEL 7

4