I got this from: http://www.autentico.ro/2012/05/28/how-to-install-eclipse-juno-java-jdk-7-on-ubuntu-12-04/
Leaving in my blog for reference… And additionally, I always lose myself on “where” to put it after I download the packed archive… Here is how it worked neatly for me:
$ sudo add-apt-repository -y ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install -y oracle-jdk7-installer $ update-alternatives --display java # check java versions (should be 1.7.*) $ java -version # Get the Eclipse installer for Linux # (if you do not know the flavour, just choose "Classic") # http://www.eclipse.org/downloads/ # Unpack it $ tar -zxvf eclipse-SDK-4.2-linux-gtk.tar.gz # if you have a previous Eclipse version installed # just move it (in case anything goes terribly wrong, # you can just rollback) $ sudo mv /usr/lib/eclipse /usr/lib/eclipse-old # move the unpacked directory to lib $ sudo mv eclipse /usr/lib/ # If you don't come from a previous installation, you will need # to create a script in /usr/bin to be the "executable" for eclipse # something simple like /usr/bin/eclipse, # which only points to: /usr/lib/eclipse/eclipse
And you are done!