How to Install Eclipse on Ubuntu 16.04

r00t January 20, 2018

Install Eclipse on Ubuntu 16.04

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:

java -version

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:

sudo ./eclipse-inst

After the installer loads > click on “Eclipse IDE for Java Developer” or any of the other options you desire.

Install Eclipse on Ubuntu 16.04

Check and confirm the install path is correct > Click Install

Install Eclipse on Ubuntu 16.04

Accept License and certificate.

Install Eclipse on Ubuntu 16.04

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:

nano ~/.local/share/applications/eclipse.desktop

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.

The Tags:

Leave a Comment

Comments are closed.