Eclipse is a an IDE i.e Integrated Development Environment tool mostly used by developers for JAVA development. This tool support development in a number of languages like C, C++, COBOL, Java, Perl, PHP, Python, Ruby, etc. and also supports plugins which can let you develop projects in a number of other languages as well.
Eclipse SDK is free and open source software released under the terms of the Eclipse Public License. In this tutorial, I will explain you how to install this IDE in your Linux based system. All the steps are successfully tested on Ubuntu 11.10 and Eclipse 3.7.1.
- Download Eclipse package from their website. You must select a version according to your need like if you want to develop C/C++ applications then you must select Eclipse IDE for C/C++ Developers, if you want to develop applications if JAVA, then you must select Eclipse IDE for JAVA Developers or Eclipse IDE for JAVA EE Developers and if you want to develop applications in third-party languages like Android from Google or some other language plugins, then you must select Eclipse Classic.
- Now open your Terminal application, move to the directory where you have downloaded eclipse archive using
cdcommand and extract the package downloaded using the
tarcommand. In my case the command is as follows
tar xzf eclipse-SDK-3.7.1-linux-gtk.tar.gz
Change the name of file
eclipse-SDK-3.7.1-linux-gtk.tar.gzwith the one you just downloaded.
- You can also extract the package by right clicking and then selecting Extract Here.
- After extracting, move the extracted directory to
/opt/ directory/. After that change the owner of the directory to
chowncommand recursively (by using
chowncommand) and then add read permission to all the directories and files present in the Eclipse directory by using
sudo mv eclipse /opt/ sudo chown -R root:root eclipse sudo chmod -R +r eclipse
- Now we need to create eclipse executable in
/usr/bin/directory with following commands and then we need to set its permissions to
755. Use the following command to create eclipse executable
sudo gedit /usr/bin/eclipse
Now place following command lines in the file opened in
#!/bin/sh #export MOZILLA_FIVE_HOME="/usr/lib/mozilla/" export ECLIPSE_HOME="/opt/eclipse" $ECLIPSE_HOME/eclipse $*
After this use the following command to change executable file permission to
sudo chmod 755 /usr/bin/eclipse
- Now we need to create Gnome menu item for eclipse. Use the following command to create
sudo gedit /usr/share/applications/eclipse.desktop
Paste in the following lines in that file and then save and quit
[Desktop Entry] Encoding=UTF-8 Name=Eclipse Comment=Eclipse IDE Exec=eclipse Icon=/opt/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;Application;Development; StartupNotify=true
- That’s all Eclipse is successfully installed in your system. You can launch it from command line using the following command
/opt/eclipse/eclipse -clean &
Incoming search terms:
- download sdk 7 for ubuntu for eclipse (1)
- MEANING OF COMMAND IN LINUX sudo mv eclipse /opt/ (1)