Install Eclipse Juno/Kepler on Ubuntu

If you use Ubuntu Software Center to install eclipse only 3.8 is available but not 4.X.

Here is how to install it manually by manually downloading the eclipse IDE package.

  •          Download the eclipse tar.gz package from here.
  •          Then righ-click the eclipse tar.gz and choose the extract here option to extract the tar.gz package. You can also use the command line to extract the tar.gz package.
# tar xzf eclipse-cpp-juno-linux-gtk.tar.gz
  •           Move the extracted eclipse in the  /opt/ folder.Before running the below command be sure that you are in the directory which contains extracted eclipse folder.
# mv eclipse /opt/
  •             Use sudo if the above command gives permission denied message.
# sudo mv eclipse /opt/
  •        Create a desktop file and place it into /usr/share/applications
# sudo gedit /usr/share/applications/eclipse.desktop
  • and copy the following to the eclipse.desktop file
[Desktop Entry]
Name=Eclipse 
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=eclipse.desktop
  • Create a symlink in /usr/local/bin using
 # cd /usr/local/bin
 # sudo ln -s /opt/eclipse/eclipse
  •  launch eclipse.

# /opt/eclipse/eclipse  -clean  &

If your eclipse does not start then you need to make sure /opt/eclipse/eclipse is there and executable.