Learn How to Install the Latest Eclipse on Ubuntu

Install eclipse oxygen ubuntu

Eclipse is a free integrated development environment IDE which 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, 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.. to install JDK, 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 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 continu.

Use the onscreen 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.

Read Also:

Ahmed Abdalhamid 6:59 am

About Ahmed Abdalhamid

Ahmed is communication engineer since 2001, he had a lot of skills. He has worked Linux system administrator, Python developer for 7 years and now he is Data scientist since 2015. He thinks Linux and Python are the greatest inventions of mankind.

Author's All Posts
Like to become part of Linoxide Team and contribute tips? Contact us here.


Your email address will not be published. Required fields are marked *

All comments are subject to moderation.