Thursday, November 1, 2012

Manual Install Eclipse - Ubuntu

I'm tired of searching in the internet on how to manually install eclipse. I am not using the Ubuntu Software Center to download eclipse because I want the Eclipse Helios to be installed.


  1. Download the Eclipse Helios. You can download any package you want. I downloaded the eclipse-jee-helios-linux-gtk.tar.gz 
  2. Extract and copy it to the /opt directory
    
    sudo tar -vxzf eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz -C /opt
    cd /opt
    sudo chown -R root:root eclipse
    sudo chmod -R +r eclipse
    
    
  3. You can also change the root:root to user:user
  4. Create an executable
    sudo touch /usr/bin/eclipse
    sudo chmod 755 /usr/bin/eclipse
    sudo gedit /usr/bin/eclipse
  5. Paste this to gedit and save
    #!/bin/sh
    #export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
    export ECLIPSE_HOME="/opt/eclipse"
    
    $ECLIPSE_HOME/eclipse $*
    
  6. Create a shortcut
    sudo gedit /usr/share/applications/eclipse.desktop
    
  7. Paste to gedit
    [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
    
  8. And launch Eclipse for the first time
    sudo eclipse/eclipse -clean
    

No comments:

Post a Comment