# Install Eclipse

May 27, 2019

This guide describes how to install the Eclipse IDE on Ubuntu.

## Installing Eclipse

References:

While Ubuntu does have a somewhat-recent version of Eclipse in its repositories, it’s rarely the latest release. On Ubuntu 12.10, the Eclipse in the repositories in 3.8, while the latest Eclipse release at that time was 4.2, Juno.

The following script can be saved as eclipse-juno-install.sh, and will download and install Eclipse 4.2:

#!/bin/sh

# Pull apart the name of the file that will be downloaded.
installationName=eclipse-java-juno-SR2-linux-gtk-x86_64
installationFile=$installationName.tar.gz # Define the directory to save the install to. installationDirectoryRoot=/usr/local/eclipse installationDirectory=$installationDirectoryRoot/$installationName # Create the installation directory root. mkdir -p$installationDirectoryRoot/

wget $installationUrl tar -xzf$installationFile
rm $installationFile mv eclipse/$installationDirectory/

# Create the application launcher.
cat <<EOF > /usr/share/applications/$installationName.desktop [Desktop Entry] Version=1.0 Name=Eclipse Juno Exec=$installationDirectory/eclipse
Terminal=false
Icon=$installationDirectory/icon.xpm Type=Application Categories=IDE;Development X-Ayatana-Desktop-Shortcuts=NewWindow [NewWindow Shortcut Group] Name=New Window Exec=$installationDirectory/eclipse
TargetEnvironment=Unity
EOF


Run the following commands to mark the script as executable and then run it:

$chmod a+x eclipse-juno-install.sh$ sudo ./eclipse-juno-install.sh


That’s it. There should now be an Eclipse Juno application launcher available.

If the JavaDoc displays in Eclipse are rendering everything as plain text with the HTML stripped out, rather than rendering the HTML properly, install the libwebkitgtk-1.0-0 package as follows and then restart Eclipse: