How to install Eclipse 3.7 on Ubuntu 11.04

The Eclipse packages in Ubuntu are are very out of date. The latest version in the Ubuntu repos is 3.5.2 where as the latest version of Eclipse is 3.7. I’m posting this because Ubuntu 11.04 uses the new Unity desktop which uses overlay-scrollbars (scrolls bars that are hidden until you hover over them). For some reason Eclipse 5.3.2 doesn’t like to play nice with the overlay scrollbars, and I’d rather use the newest version anyways. With Eclipse, you can just download the tar.gz file from eclipse.org and run it no problem, but I like set things up in a cleaner fashion, so here’s how I did it.

1) Download Eclipse. I got eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz

2) Extract it

tar xzf eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz

Or just be lazy and Right Click > Extract Here

3) Move to /opt/ folder

mv eclipse /opt/
sudo chown -R root:root eclipse
sudo chmod -R +r eclipse

4) Create an eclipse executable in your path

sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudo nano /usr/bin/eclipse

copy this into nano

#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

save the file (^O = Ctrl+o) and exit nano (^X = Ctrl+x)

5) Create a gnome menu item

sudo nano /usr/share/applications/eclipse.desktop

copy this into nano

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

save and exit nano

6) Launch Eclipse for the first time

/opt/eclipse/eclipse -clean &

173 Comments on “How to install Eclipse 3.7 on Ubuntu 11.04

  1. I used this instructions to install Eclipse 4.2 on Ubuntu 12.04 with classic Gnome; who wants Unity :)
    It worked perfectly, thank you!

  2. still can’t run it.
    done this on terminal:
    param@param-desktop:/media/PARAMVEER$ mv eclipse /opt/
    mv: cannot create directory `/opt/eclipse’: Permission denied
    param@param-desktop:/media/PARAMVEER$ sudo mv eclipse/opt/
    mv: missing destination file operand after `eclipse/opt/’
    Try `mv –help’ for more information.
    param@param-desktop:/media/PARAMVEER$ sudo mv eclipse /opt/
    param@param-desktop:/media/PARAMVEER$ sudo chown -R root:root eclipse
    chown: cannot access `eclipse’: No such file or directory
    param@param-desktop:/media/PARAMVEER$ cd /opt
    param@param-desktop:/opt$ sudo chown -R root:root eclipse
    param@param-desktop:/opt$ sudo chmod -R +r eclipse
    param@param-desktop:/opt$ sudo touch /usr/bin/eclipse
    param@param-desktop:/opt$ sudo chmod 755 /usr/bin/eclipse
    param@param-desktop:/opt$ sudo nano /usr/bin/eclipse
    param@param-desktop:/opt$ sudo nano /usr/share/applications/eclipse.desktop
    param@param-desktop:/opt$ /opt/eclipse/eclipse -clean &
    [1] 6540
    param@param-desktop:/opt$ bash: /opt/eclipse/eclipse: Permission denied
    sudo /opt/eclipse/eclipse -clean &
    [2] 6560
    [1] Exit 126 /opt/eclipse/eclipse -clean
    param@param-desktop:/opt$ sudo: /opt/eclipse/eclipse: command not found

  3. Worked perfectly but i change the Exec link on the applications desktop. Nice post

  4. I have followed the same steps ,however I am getting below error for the last step.
    /opt/eclipse/eclipse: Permission denied

  5. Pingback: Installation d’Eclipse | Dev Student Helper

  6. Pingback: This Magpie | Installing Eclipse Juno 4.2 on Lubuntu 12.04

  7. Pingback: Installing Eclipse Juno 4.2 on Ubuntu 12.04 or 12.10 | thisMagpie

  8. Dear Colin,
    Your recipe allowed me to kick down a door made of very large bricks!
    To quote The Rabbit, “Thanks large, Mac.”
    C. ;D

  9. Thanks, works like a charm. Ubuntu 12.04, Eclipse 4.2.2 (Juno).

  10. Thank you, I am now about to install Luna(4.4) and I still use this article as reference.

  11. Halo Premium All USA created e-liquid is right here. When people see smoke from my
    electronic cigarette, I see them flinch away and then they ask what is
    that wonderful smell. Every Amerismoke cartridge is the same as 30 cigarettes, each cartridge of Amerismoke
    can be purchased in 7 seven different flavors you can choose such as Strawberry, Coffee, Tobacco,
    Vanilla, Menthol, Chocolate and Apple.

  12. My brother recommended I may like this website. He was
    once totally right. This put up actually made my day. You cann’t believe just how a lot time I had spent for this information! Thank you!

  13. DA Vinci Vaporizer evaluations also highlight its integral storage pocket.
    There remain potential dangers into a smoker’s health from
    an e-cigarette and general societal dangers because of this new nicotine delivery system.
    It seems if I stretch effortlessly my might, (stretch).

  14. I’ll immediately snatch your rss as I can’t
    in finding your e-mail subscription hyperlink or newsletter service.
    Do you’ve any? Kindly allow me understand in order that I may just subscribe.
    Thanks.

  15. Hi! I’ve been reading your site for a long time now
    and finally got the bravery to go ahead and give you a
    shout out from New Caney Tx! Just wanted to mention keep up the good work!

  16. Hi it’s me, I am also visiting this website regularly, this web site is truly nice and the viewers are really sharing good thoughts.

  17. Pingback: How to: ADT requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found | SevenNet

  18. Pingback: Fixed ADT requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found #dev #it #asnwer | Good Answer

  19. Pingback: Fixed: ADT requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found #computers #development #fix | IT Info

  20. whoah this blog is excellent i love studying your posts. Stay up the
    good work! You already know, many persons are looking round
    for this information, you can aid them greatly.

  21. The new Eclipse Installer shows the packages available to Eclipse users. You can search for the package you want to install or scroll through the list.

  22. Attractive section of content. I just stumbled upon your website and in accession capital to assert that I get in fact enjoyed account your blog posts. Any way Ill be subscribing to your feeds and even I achievement you access consistently rapidly. kkekbaefgkddadeg

  23. It’s a shame you don’t have a donate button! I’d most certainly donate to this brilliant blog! I suppose for now i’ll settle for bookmarking and adding your RSS feed to my Google account. I look forward to new updates and will talk about this site with my Facebook group. Chat soon!

  24. Hi there to every one, the contents existing at this site are actually awesome for people knowledge, well, keep up the nice work fellows.

  25. Nice post. I was checking continuously this blog and I’m impressed!
    Extremely helpful info particularly the last part :) I care
    for such info a lot. I was seeking this particular information for a very long time.

    Thank you and best of luck.

Leave a Reply to Pete Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.