In this tutorial we will show you how to install Eclipse on Ubuntu 16.04. We will also install and configure its prerequisites. Eclipse is an open-source development environment used to develop applications. It supports various programming languages and can be installed on all Operating systems (Windows, Linux, Mac)
I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install Eclipse on Ubuntu 16.04
Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:
apt-get update -y apt-get upgrade -y
Step 2. Installing Java.
Eclipse requires Java to be available on your machine. So, go and install the Java:
sudo apt-get install openjdk-8-jre
Verify the Java version on your machine:
Step 3. Installing Eclipse.
First, Download Eclipse Installer here for either 32bit or 64bit:
wget http://artfiles.org/eclipse.org//oomph/epp/neon/R2a/eclipse-inst-linux64.tar.gz tar xf eclipse-inst-linux64.tar.gz cd eclipse-installer
Install eclipse with sudo if you want to install it in /opt directory:
After the installer loads > click on “Eclipse IDE for Java Developer” or any of the other options you desire.
Check and confirm the install path is correct > Click Install
Accept License and certificate.
After install is done > Click Launch.
Step 4. Create Launcher Icon.
Create the following file “eclipse.desktop” > edit as well as copy and paste entry below (ensure the path to where you installed eclipse is correct) > save:
Add the following content:
[Desktop Entry] Encoding=UTF-8 Name=Eclipse 4.7 Comment=Eclipse Oxygen Exec=/usr/bin/eclipse Icon=/usr/eclipse/icon.xpm Categories=Application;Development;Java;IDE Version=1.0 Type=Application Terminal=0
Then add execution permission to the file using the following command:
chmod +x ~/.local/share/applications/eclipse.desktop
Finally steps ,open the file location for eclipse.desktop, drag and drop it on the launcher. Note you have to enable “Show hidden files”
Congratulation’s! You have successfully install and configured Eclipse on your Ubuntu 16.04 server. Thanks for using this tutorial installing Eclipse Neon on Ubuntu 16.04 LTS (Xenial Xerus) system.