How to Install Eclipse on Ubuntu 18.04

Install eclipse oxygen ubuntu

Eclipse is a free integrated development environment IDE that is used by programmers around to write software mostly in Java but also in other major programming languages via Eclipse plugins.

Eclipse is not only good at developing applications but you can use its collection of tools to easily enhance your Eclipse desktop IDE, including GUI builders and tools for modeling, charting, reporting testing, and more.

To install Eclipse on Ubuntu 18.04, follow the steps below:

step 1) Install Java JDK8

Eclipse requires Java JDK to be installed on the system you want to use. At this time, only Java JDK 8 is fully compatible, use the steps below:

The easiest way to install Oracle Java JDK 8 on Ubuntu is via a third-party PPA. To add that PPA, run the commands below

$ sudo add-apt-repository ppa:webupd8team/java

After running the commands above, you should see a prompt to accept the PPA key onto Ubuntu. accept and continue

Now that the PPA repository has been added to Ubuntu, run the commands below to download Oracle Java 9 installer. the installer should install the latest Java JDK 9 on your Ubuntu machines.

$ sudo apt update
$ sudo apt install oracle-java8-installer

When you run the commands above you’ll be prompted to access the license terms of the software. accept and continue.

Set Oracle JDK8 as default, to do that, install the Oracle-java8-set-default package. This will automatically set the JAVA env variable.

sudo apt install oracle-java8-set-default

The command above will automatically set Java 9 as the default… and that should complete your installation, you can check your java version by running the following command:

javac -version

step 2) Download Eclipse Oxygen

Now that Java JDK 8 is installed, got and download Eclipse Oxygen IDE package for your systems. the link below can be used to get it.

Download Eclipse

Extract the downloaded package to the directory/opt using the commands below. by default Eclipse package should be downloaded into the folder~/Downloads of your home directory.

step 3) Install Eclipse IDE

Use the commands below to extract the content in the ~/Downloads folder. The next line launches the installer…

  tar xfz ~/Downloads/eclipse-inst-linux64.tar.gz

Select the package IDE you want to install and continue.

Use the on-screen instructions to complete the installer. Accept the default installation directory and continue.

Next, accept the license terms and continue. wait for Eclipse installer to download and install all the packages.

After downloading the installer should complete. all you have to do is launch the program.

Step 4) Create Eclipse App Launcher

Now that Eclipse is downloaded and installed, create a launcher for the application. to do that, run the commands below.

nano .local/share/applications/eclipse.desktop

Next, copy and paste the content below into the file and save.

  [Desktop Entry]
  Name=Eclipse JEE Oxygen
  Comment=Integrated Development Environment

Replace the highlighted username (smart) with your own account name. also, the Exec = location and icon.xpm should depend on where Eclipse got installed on your system.

Save the file and exit.

You should then have a launcher for Eclipse JEE Oxygen. open Dash or the activities overview and search for Eclipse and then launch.

To create additional IDEs, you must repeat step 3 by launching the installer again and created an application launcher for that IDE.

When the app launches, you should be able to configure it for your environment.

2 Comments... add one

  1. Wish I new what 'Installation Folder' means. Does this mean it will download the installer to this folder then run the installer to install to a different location, or is this where eclipse will be installed to? I currently have a broken eclipse at /usr/bin/eclipse - this is now wanting to place a copy at /home/myname/eclipse/java-2018-12 ? Why did the installer not detect my previous installation and fix it? Crappy installers. Which they had more documentation or more manual controls...


Leave a Comment