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
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.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!
Latest posts by Dan Nanni (see all)
- How to back up a WordPress website to remote cloud storage from the Linux command line - November 24, 2015
- How to access Dropbox from the command line in Linux - November 22, 2015
- How to send email notifications using Gmail SMTP server on Linux - November 9, 2015