Skip to content
  • Ubuntu

How to install Eclipse IDE on Ubuntu 20.04 LTS

Eclipse is an IDE for Java development, but it supports several other languages ​​from plugins like C/C++, PHP, ColdFusion, Python, Scala and Android platform. It was made in Java and follows the open source software development model.

In this tutorial, we will see how to install the latest Eclipse IDE on an Ubuntu 20.04 | 18.04.

Eclipse IDE benefits

When using Eclipse IDE we will have advantages such as:

  • Performance improvements
  • Supports the latest version of Java 14
  • Completely free and open source
  • Improved themes and styles in Eclipse IDE
  • Allows you to create Eclipse workgroups where users and organizations work under a vendor-neutral governance model

Prerequisites for installation

Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges .

Step 1 – Install Java

Eclipse required Java runtime environment to be installed on your system. If you already have Java installed, skip this step. To install Java type:

sudo apt update

Command to install JRE on Ubuntu 

sudo apt install default-jre

Command to install JDK on Ubuntu

The JDK package also contains JRE. It will also required to compile a Java program on your system. On the other hand, Use next tutorial, to install specific Java version.

To install Eclipse on your Ubuntu system, follow these steps:

Eclipse is a Java-based application and requires a Java Runtime Environment (JRE) to function. Install the default OpenJDK package with the following command:

sudo apt-get install openjdk-11-jdk

Step 2 – Downloading the Eclipse

First, we will download Eclipse through the official website:

http://www.eclipse.org/downloads/?osType=linux

Click on the Download button and then on the file to download it.

Step 3 – Install the Eclipse IDE on Ubuntu

Once downloaded, we will go to the download directory.

cd Downloads/

ls

The above command will show all the files and folder available under the login user. Now find the downloaded Eclipse file and copy its name and use the sudo tar -xvzf command to extract it.

sudo tar -xvzf eclipse-inst-linux64.tar.gz

Step 4 – Run the Eclipse Installer on Ubuntu

After this file extraction you will have a directory called  eclipse-installer. Enter it and double-click the eclipse-inst installer file .

If you want the simplest IDE, that is, with fewer packages, we will select the Eclipse IDE for Java Developers option .

Create a Desktop shortcut for Eclipse IDE in Ubuntu.

sudo apt-get install --no-install-recommends gnome-panel

gnome-desktop-item-edit --create-new ~/Desktop

In the Name section, type the name you want to give your Eclipse Desktop shortcut and then just browse the eclipse executable file form the Eclipse folder.

How to check your Eclipse version

For Eclipse version – you can check Eclipse -> About Eclipse or Help -> Installation Details, then you should see the version:

How to remove Eclipse on Linux

To remove Eclipse on Linux, just delete the program’s folder and shortcut, with the commands below:

Step 1:

rm -Rf /opt/eclipse/

Step 2:

rm -Rf /usr/share/applications/eclipse.desktop

Conclution

You have now learned how to install Eclipse on your Ubuntu 20.04 LTS Focal Fossa computer. You can now begin working on your Java and other project like c++, Python just adding plugin.

Last Updated on January 16, 2024 by admin

Share this post on social

Copyright 2022 Linuxguidehq.com. All rights reserved. No part of this website may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the copyright owner.