installing of eclipse on ubuntu 12.04 LTS

Eclipse Installation

Step:1 Java installation


Step:2 g++ installation
sudo apt-get install g++

Step:3
manually downloading the eclipse IDE package.

First download the eclipse tar.gz package from here.
http://www.eclipse.org/downloads/

Then righ-click the eclipse tar.gz and choose the extract here option to extract the tar.gz package.You can also use the command line to extract the tar.gz package.
       
# tar xzf eclipse-cpp-juno-linux-gtk.tar.gz
 
Move the extracted eclipse in the  /opt/ folder.Before running the below commmand be sure that you are in the directory which contains extracted eclipse folder.

# mv eclipse /opt/
           
Use sudo if the above command gives permission denied message.
                                 
# sudo mv eclipse /opt/

Create a desktop file and place it into /usr/share/applications
              
# sudo gedit /usr/share/applications/eclipse.desktop            
        
and copy the following to the eclipse.desktop file
[Desktop Entry]
Name=Eclipse 
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=eclipse.desktop
  
Create a symlink in /usr/local/bin using
 # cd /usr/local/bin
 # sudo ln -s /opt/eclipse/eclipse

    
Now its the time to launch eclipse.
        
# /opt/eclipse/eclipse  -clean  &           

1 comments: