How to Install Eclipse on Ubuntu 12.10 and ubuntu 12.04 and ubuntu server


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  &           

5 comments:

  1. Fantastic. Worked a treat.

    What does g++ do?

    And what exactly is a system link?

    Thanks

    ReplyDelete
  2. Why not simply install the native Debian packages "eclipse" or "eclipse-platform" from the package manager? Here's a good guide for that: http://kyleabaker.com/2012/09/17/debugging-php-in-ubuntu-using-eclipse/

    ReplyDelete
  3. Hi Colan,
    Here i am Publishing How to Install Eclipse on Ubuntu.The native Debian packages Will support Ubuntu.But you have to install depend on your version list
    any thing else send me mail i will guide you

    ReplyDelete
  4. I followed the isntructions as you listed and after executing:
    /opt/eclipse/eclipse -clean &
    in the terminal I get:
    bash: /opt/eclipse/eclipse: no such file or directory
    so the obviouse way is to go to the directory and check and its there I also check the file created with gedit and it has everything as you listed. Im kinda of a noob so I will be greatfull for any help

    ReplyDelete