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!


A simple: /usr/lib/eclipse/eclipse in a file called “/usr/bin/eclipse” would do. Or a symlink to the eclipse executable:
But, for the record, that’s how it Eclipse creates the script for us upon repository installation:
thanks for the post. How would I create the script to execute Eclipse?thanks
Worked for me, thank you Bruno!
thanks eclipse now work perfectly.
I had some problems using these instructions to install java7 jdk. Instead, I used the script at: https://github.com/flexiondotorg/oab-java6 which is currently broken, but has a fix proposed in the issue tracker: https://github.com/flexiondotorg/oab-java6/pull/56There is a howto on using the script here: http://www.gaggl.com/2012/04/installing-java6-jdk-on-ubuntu-12-04/but you need to modify the script yourself as of today.I then installed:sudo apt-get install oracle-java7-jdk oracle-java7-pluginThe update-alternatives didn’t set java7 to the default, but eclipse doesn’t seem to care.I posted this here because searching google for ubuntu 12.04 eclipse juno got me here.
Do you have the output of the problems you said you had?It would help to understand better why you had it… I am using this here in an automated script I run on newly installed machines, and had no issues in more than 10 machines so far…
Okay, this is wierd. I swear when I tried it earlier it wouldn’t accept the ppa because of a key error. When I looked on the web it looked like the key was revoked by canonical because of some licensing problem…… But now it seems to work. Sorry for the false alarm.
Worked for me too. Thanks a lot !
Thanks every is OK after installation by Your suggestionPavol
Thanks a lot for this quick guide. Excellent.
Works perfectly on Elementary OS Luna (based on Ubuntu). Thanks, Bruno!
Well done. Thank you very much for this quick solution.
Thanks Bruno. I really appreciate the effort and it worked a treat for me.
hi Bruno,I successed to copy Eclipse to usr/lib/eclipse and run it by ../eclipse/eclipse but when Eclipse start I didn’t find it in Dash. So what I must to do
Is eclipse under your $PATH? As long it is executable and in there, you should be able to start from command line.
^^! I fix it. If you want to see it in Dash. trysudo gedit /usr/share/applications/eclipse.desktopin gedit, type[Desktop Entry]Name=Eclipse Type=ApplicationExec=/usr/lib/eclipse/eclipseTerminal=falseIcon=/usr/lib/eclipse/icon.xpmComment=Integrated Development EnvironmentNoDisplay=falseCategories=Development;IDEName[en]=eclipse.desktopit works! Immediately
You have a problem with your link on stack overflow linking to this article – your link is
http://blog.brunobraga.net/eclipse-42-in-ubuntu-1204
and your actual url is
http://blog.brunobraga.net/eclipse-4-2-in-ubuntu-12-04/
which results in 404.
I am still happy that I found the article.
Peace
Thanks or pointing that out… I recently had to migrate my site because Posterous is closing down, and did so using an automated tool, so I was expecting that some links might get wrong such as this one.
I will see if I can fix it.
(Update) Done! Cheers,
Thanks for the tutorial.. Worked for me..