Install Eclipse Oxygen on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to install the latest Eclipse IDE on Ubuntu 18.04 Bionic Beaver Linux

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver
  • Software: – Eclipse Oxygen.2 IDE – 4.7.2

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Other Versions of this Tutorial

Ubuntu 20.04 (Focal Fossa)

Instructions

Install Java

Before you proceed with the Eclipse Oxygen IDE installation confirm that you have Java already installed on your system. Example:

$ java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

Follow our guide on how to install java on Ubuntu 18.04 in case you do not have Java installed yet. This guide will use Oracle java 9.0.4 for the Eclipse Oxygen installation on Ubuntu 18.04.

Alternatively, instead of proprietary oracle java you can install OpenJDK java on Ubuntu 18.04.

Download Eclipse Oxygen Installer

At this point you should have Java already installed on your Ubuntu system. Use the below wget command to download the latest Eclipse Oxygen IDE or use your browser to a select different mirror:

$ wget http://eclipse.bluemix.net/packages/oxygen.2/data/eclipse-inst-linux64.tar.gz

Once the Eclipse Oxygen package is download use tar to extract it:

$ tar xzf eclipse-inst-linux64.tar.gz

Start Eclipse Oxygen Installer

At this stage we are ready to start Eclipse Oxygen Installer. The installer executable is located within the newly extracted directory eclipse-installer. Start the installer by executing the bellow command:

$ ./eclipse-installer/eclipse-inst


Update Eclipse Oxygen installer - Ubuntu 18.04

The first recommended step is to update the Eclipse Oxygen installer. Click on the top-right menu icon with the exclamation mark.

Update Eclipse Oxygen installer - Ubuntu 18.04

Hit UPDATE button.

Eclipse Oxygen installer licenses- Ubuntu 18.04

Tick Remember accepted licenses and hit the Accept button.



Restart Eclipse Oxygen installer - Ubuntu 18.04

Click on OK to restart Eclipse Oxygen Installer.

Eclipse IDE for Java Developers -  Ubuntu 18.04

Select any Eclipse Oxygen IDE you wish to install. For example we will be installing Eclipse IDE for Java Developers

Eclipse IDE Installation Folder -  Ubuntu 18.04

Select Installation Folder or leave it default. The installation folder will hold the eclipse executable binary for this particular IDE. Once ready hit the INSTALL button.

start Eclipse IDE - Ubuntu 18.04

If everything goes well you will be able to start Eclipse IDE for Java Developers by clicking on the LAUNCH button.



Select Eclipse IDE workspace - Ubuntu 18.04

Select Workspace.

Eclipse Oxygen IDE on Ubuntu 18.04

Eclipse Oxygen IDE on Ubuntu 18.04

Please note that if you need to install another IDE flavor simply run the Eclipse Oxygen installer again and select a different IDE to install.

Note, each installed Eclipse IDE has its own separate directory and eclipse executable binary. To start for example Eclipse IDE for Java Developers you would execute the command:

$ ~/eclipse/java-latest-released/eclipse/eclipse

Whereas to start Eclipse IDE for C/C++ Developers you might use:

$ ~/eclipse/cpp-latest-released/eclipse/eclipse

and so on. Alternatively follow our guide on how to create desktop shortcut launcher on Ubuntu 18.04.

The sample Gnome desktop shortcut for Eclipse IDE for Java Developers can be found below. Make sure to enter a valid full path to your Eclipse IDE installation folder on Line 6 and Line 9:

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/home/linuxconfig/eclipse/java-latest-released/eclipse/eclipse
Name=Eclipse IDE for Java Developers
Comment=Eclipse IDE for Java Developers
Icon=/home/linuxconfig/eclipse/java-latest-released/eclipse/icon.xpm

Eclipse IDE shortcut on Ubuntu 18.04 Gnome Desktop

Eclipse IDE shortcut on Ubuntu 18.04 Gnome Desktop