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
    [code language=”bash”]
    tar -zxvf eclipse-xxx-xxx-xxx-linux-gtk-x86_64.tar.gz
    [/code]
  3. Switch to root
    [code language=”bash”]
    sudo -i
    [/code]
  4. Copy extracted folder to /opt and rename to eclipse_kepler
    [code language=”bash”]
    cp -r eclipse /opt/eclipse_kepler
    [/code]
  5. Create a desktop file and install it.
    [code language=”bash”]
    gedit eclipse_kepler.desktop
    [/code]
    The content of eclipse_kepler.desktop:
    [code]
    [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
    [/code]
    Execute the following command to install it in the unity:
    [code language=”bash”]desktop-file-install eclipse_kepler.desktop[/code]
  6. Create a symlink in /usr/local/bin using
    [code language=”bash”]
    cd /usr/local/bin
    ln -s /opt/eclipse_kepler/eclipse
    [/code]
  7. Integrate the Eclipse menu in Unity top panel using
    [code language=”bash”]
    cd /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/menuproxies && sudo sed -i ‘s/Eclipse/Xclipse/’ libappmenu.so
    [/code]
  8. Launch Eclipse
    [code language=”bash”]
    /opt/eclipse_kepler/eclipse -clean &
    [/code]
  9. Lock Eclipse to the launcher bar by clicking right button on Lock to Launcher

Reference: