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 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.
[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
You can have daily Linux tutorials and FAQs delivered to your email inbox. Simply enter your email address below to subscribe to our mailing list. You will receive hands-on guides and carefully written tutorials related to Linux, everything for free.