Install Eclipse on Ubuntu

Eclipse Kepler (4.3) is released on June 16, 2013. I want to try it on my Ubuntu 12.04 LTS. Follow these steps for the installation:

  1. Download Eclipse from eclipse.org
  2. Extract the eclipse-xxx-xxx-xxx-linux-gtk-x86_64.tar.gz using
    tar -zxvf eclipse-xxx-xxx-xxx-linux-gtk-x86_64.tar.gz
    
  3. Switch to root
    sudo -i
    
  4. Copy extracted folder to /opt and rename to eclipse_kepler
    cp -r eclipse /opt/eclipse_kepler
    
  5. Create a desktop file and install it.
    gedit eclipse_kepler.desktop
    

    The content of eclipse_kepler.desktop:

    [Desktop Entry]
    Name=Eclipse 
    Type=Application
    Exec=/opt/eclipse_kepler/eclipse
    Terminal=false
    Icon=/opt/eclipse_kepler/icon.xpm
    Comment=Integrated Development Environment
    NoDisplay=false
    Categories=Development;IDE
    Name[en]=Eclipse Kepler
    

    Execute the following command to install it in the unity:

    desktop-file-install eclipse_kepler.desktop
  6. Create a symlink in /usr/local/bin using
    cd /usr/local/bin
    ln -s /opt/eclipse_kepler/eclipse
    
  7. Integrate the Eclipse menu in Unity top panel using
    cd /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/menuproxies && sudo sed -i 's/Eclipse/Xclipse/' libappmenu.so
    
  8. Launch Eclipse
    /opt/eclipse_kepler/eclipse -clean &
    
  9. Lock Eclipse to the launcher bar by clicking right button on Lock to Launcher

Reference:


Posted

in

, ,

by

Tags: