Windows – Linux – Mac OSX Guides

Eclipse 3.5 Galileo on Ubuntu Jaunty 9.04

Base on some other articles guiding installation of Eclipse on Ubuntu, here are some steps that help you getting Eclipse 3.5 working on Ubuntu Jaunty 9.04

1. Install Sun Java JDK

#sudo apt-get install sun-java6-jdk

2. Choose an icon
You can save this icon to your Desktop so later can be used for menu icon

3. Download Eclipse Galileo
You can go to official site http://www.eclipse.org/downloads/ and choose your edition, here I choose Eclipse for PHP Developer (http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/R/eclipse-php-galileo-linux-gtk.tar.gz).

Save to your Desktop

4. Extract Eclipse
Open Terminal, and execute:

#cd ~/Desktop
#tar xzf eclipse-php-galileo-linux-gtk.tar.gz (replace your downloaded file name here)
#sudo mv eclipse /opt/eclipse
#sudo mv eclipse-galileo.png /opt/eclipse
#cd /opt
#sudo chown -R root:root eclipse
#sudo chmod -R +r eclipse
#cd /opt/eclipse
#sudo chmod +x eclipse

5. Create an executable shell for eclipse
Open terminal, execute the commands:

#sudo touch /usr/local/bin/eclipse (this assumes that /usr/local/bin is in the path)
#sudo chmod 755 /usr/local/bin/eclipse
#sudo nano /usr/local/bin/eclipse

When file is opened with nano, enter the following:

#!/bin/sh
export ECLIPSE_HOME=/opt/eclipse
$ECLIPSE_HOME/eclipse $*

6. Create GNOME menu item
Open Terminal, execute the following commands:

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

Enter the following contents:

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

7. Initialise eclipse
Open Terminal, execute:

#/opt/eclipse/eclipse –clean

8. From now on, you can choose to run Eclipse from menu Applications->Programming->Eclipse

Tagged with:     , , , , ,

Related Articles

Loading Facebook Comments ...

13 Comments

  1. whatdoesitwant

    Finishing touches

    If you can’t find a nice transparent file for the icon, i found one at http://commons.wikimedia.org/wiki/File:Vista-eclipse.png. Just download it to your desktop and rename it to eclipse-galileo.png before going through this setup.

    Option click on Eclipse in Application>Development to add a shortcut to the panel or the desktop.

  2. number.0

    @whatdoesitwant: thanks for the icon, looks just great 🙂

  3. Nandini

    After installation tried to create a new PHP Project – getting the following error –

    Creation of element failed.

    Reason:
    Build path contains duplicate entry: ‘opt/eclipse/plugins/org.eclipse.php.core_2.1.0.v20090617-2314/Resources/language/php5/’ for project testphpproject

  4. number.0

    I got rid of this by click Finish on the first screen.

  5. bam

    on step 5, after i type those command on nano. what next? coz i already follow all the instuction but nothing happen.. something is missing..

  6. Andrei

    Worked perfectly on Ubuntu 9.04 for Eclipse Galileo PDE package.

    Thanks a lot!

  7. Phani

    Thanks, exactly what i wanted.

  8. NssY

    Thanks. Made my day

  9. lore

    that’s cool! 😉
    thanks!!!

  10. FHurtad

    Thanks for these instructions. Galileo is now working fine on my machine (Sony NR360E)

  11. Abhishek Ransingh

    Hi All,
    I’ve done all the steps which has been mentioned above. But, when last step comes i.e. to initialize Eclipse by typing in the terminal – /opt/eclipse/eclipse –clean then following error comes : “bash: /opt/eclipse/eclipse: cannot execute binary file ” Plz guys help me out. How to get rid of that ?

  12. Venkat Mantirraju

    This is an excellent guide. Thanks a lot for your effort and time in making this available to all the developers and eclipse and UBUNTU lovers.

    However on 9.10, it looks like there is a bug with Eclipse. We need to add these below lines to the file at
    /usr/local/bin/eclipse

    #!/bin/sh
    export GDK_NATIVE_WINDOWS=1
    /opt/eclipse-3.5/eclipse

    Thanks to the below link for additional information on this. I thought that it would be handy for the team members those are looking in to this installation guide.

    http://www.norio.be/blog/2009/10/problems-eclipse-buttons-ubuntu-910#comment-610

    Thanks again for all your help,
    Venkat

  13. ezequiel

    thnx! worked perfectly!

Post your comments

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