How to install Eclipse on Linux

Eclipse is a software development environment with extensible plug-ins, toolkits, and run-time libraries, supporting development in Java as well as other languages such as C/C++ and PHP. In order to install Eclipse SDK on Linux, you can do the following.

First, you need to install Java JDK.

Then go ahead and download Eclipse SDK from their official website. Make sure to know whether your system is a 32-bit or 64-bit system, and download Eclipse accordingly.

Unzip the downloaded Eclipse SDK tarball, and install it wherever you prefer (e.g., /usr/local) as follows.

$ sudo tar -xvzf eclipse-SDK-3.7.2-linux-gtk.tar.gz -C /usr/local
$ sudo chmod -R +r /usr/local/eclipse

Note that eclipse-SDK-3.7.2-linux-gtk.tar.gz in the example above is a binary for 32-bit system. For 64-bit system, you will need eclipse-SDK-3.7.2-linux-gtk-x86_64.tar.gz instead.

Next, set up ECLIPSE_HOME environment variable, and modify PATH environment variable to add a path to eclipse executable. If you want, you can set these environment variables permanently system-wide.

export ECLIPSE_HOME="/usr/local/eclipse"
export PATH=/usr/local/eclipse:$PATH

If you are using GNOME desktop, you can create a desktop launch file, so that you can launch Eclipse by clicking on a desktop icon.

$ sudo vi /usr/share/applications/eclipse.desktop
[Desktop Entry]
Encoding=UTF-8
Version=3.7.2
Type=Application
Name[en_US]=Eclipse
Comment=Eclipse SDK 3.7.2
Exec=/usr/local/eclipse/eclipse
Icon=/usr/local/eclipse/icon.xpm
Terminal=false
Categories=GNOME;Application;Development;
StartupNotify=true

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of Xmodulo.com. He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.
Your name can also be listed here. Write for us as a freelancer.

One thought on “How to install Eclipse on Linux

  1. Thanks for this good tutorial.
    My problem was about creating ".desktop" file that was solved.
    Arch distribution has the latest version of Eclipse in its own repositories.

Leave a comment

Your email address will not be published. Required fields are marked *