How to install eclipse in ubuntu 12.04

Eclipse installation in ubuntu 12.04 is very simple . you can install eclipse using “software center” but you may not get the latest version, better download the latest version and install manually . Here we can see how to install eclipse in ubuntu manually .
install eclipse ubuntu 12.04

Installing eclipse in ubuntu 12.04

Step 1 » Before installing eclipse you need to install java , you can either install JRE or JDK .
krizna@leela:~$ sudo apt-get install openjdk-7-jre
[or]
If you are going to use eclipse for java development, then you can install JDK
krizna@leela:~$ sudo apt-get install openjdk-7-jdk
Step 2 » Download the latest eclipse package from here http://www.eclipse.org/downloads/?osType=linux
Step 3 » move the package to the /opt directory
krizna@leela:~$ sudo mv eclipse-SDK-4.2.2-linux-gtk.tar.gz /opt/
Step 4 » Unzip the package by typing the below command
krizna@leela:~$ cd /opt
krizna@leela /opt:~$ sudo tar -xvf eclipse-SDK-4.2.2-linux-gtk.tar.gz
Step 5 » Create a new desktop file eclipse.desktop in /usr/share/applications/ and add the below lines .

[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

Step 6 » Now goto /usr/share/applications and find eclipse.desktop file for launching eclipse , you can drag this file to the launcher.
install eclipse ubuntu 12.04
good luck

31 Comments

  1. Hi!
    I’m new on ubuntu. I installed ubuntu 14.04 LTS. I’m trying to install eclipse for java developing.
    I’m feeling a problem when I’m going to create new file in /usr/share/applications/
    It’s saying me, don’t permission to root.

    Thanks

    • for all operations outside of your home folder. use before any command
      sudo…it is gonna ask for a passwd, it is ur passwr
      enjoy

  2. Hi!
    I’m new on ubuntu. I installed ubuntu 14.04 LTS. I’m trying to install eclipse for java developing.
    I’m feeling a problem when I’m going to create new file in /usr/share/applications/
    It’s saying me, don’t permission to root.

    Thanks

    • for all operations outside of your home folder. use before any command
      sudo…it is gonna ask for a passwd, it is ur passwr
      enjoy

  3. To copy .desktop file change your working directory which contained .desktop file and type following in terminal.

    sudo cp /usr/share/applications

  4. To copy .desktop file change your working directory which contained .desktop file and type following in terminal.

    sudo cp /usr/share/applications

  5. Hi Thanks for the guide. I was able to install eclipse in Ubuntu 12.04 and get it working but somehow when I rebooted, it seemed to have been replaced by eclipse from the software center. I am quite new to ubuntu or linux environment. Would you have any idea how to sort this out? Thanks.

1 Trackback / Pingback

  1. DTN仿真器安装:The ONE+Eclipse+ModelGoon | Spark & Shine

Leave a Reply

Your email address will not be published.


*