Execute this in your terminal:

sudo apt-get install eclipse
sudo apt-get install openjdk-6-jdk openjdk-6-source openjdk-6-demo openjdk-6-doc openjdk-6-jre-headless openjdk-6-jre-lib

The first one installs Eclipse (you will be asked to enter your password), and the second one installs all the Java stuff you may need!

Answer from tuxtimo on Stack Overflow
๐ŸŒ
Ubuntu
documentation.ubuntu.com โ€บ ubuntu-for-developers โ€บ howto โ€บ java-setup
How to set up a development environment for Java on Ubuntu - Ubuntu for Developers
3 weeks ago - de facto standard integrated development environment for Java development. This also provides the latest Java LTS (long-term support) version: ... Run eclipse to start the IDE. To install the default Java Development Kit for your Ubuntu release, run:
๐ŸŒ
TheServerSide
theserverside.com โ€บ video โ€บ Install-Eclipse-IDE-on-Ubuntu-in-5-easy-steps
Install Eclipse on Ubuntu | TheServerSide
This Eclipse and Ubuntu tutorial shows developers how to install the Eclipse IDE on Ubuntu, create a Maven project, and develop and test Java code.
๐ŸŒ
LinuxForDevices
linuxfordevices.com โ€บ home โ€บ ubuntu โ€บ how to install eclipse ide on ubuntu linux?
How to install Eclipse IDE on Ubuntu Linux? - LinuxForDevices
April 9, 2024 - ... To install the latest version, we first have to manually install the dependencies of the program. JRE is used to run precompiled Jar files on Ubuntu, and therefore Java-based applications on Ubuntu also run on JRE.
๐ŸŒ
It's FOSS
itsfoss.com โ€บ install-latest-eclipse-ubuntu
How to Install Eclipse on Ubuntu and Other Linux
May 26, 2023 - A guide to installing the latest version of Eclipse IDE for Java, C++ and PHP on Ubuntu and other Linux distributions.
๐ŸŒ
Medium
medium.com โ€บ @simcogno โ€บ how-to-easily-install-eclipse-and-jdk-on-ubuntu-21-04-d585d9c53f55
How to easily install Eclipse and JDK on Ubuntu 21.04 | by Simone Cognolato | Medium
July 22, 2021 - Command 'java' not found, but can be installed with: sudo apt install openjdk-11-jre-headless # version 11.0.11+9-0ubuntu2, or sudo apt install default-jre # version 2:1.11-72 sudo apt install openjdk-15-jre-headless # version 15.0.3+3-1 sudo apt install openjdk-16-jre-headless # version 16.0.1+9-1 sudo apt install openjdk-17-jre-headless # version 17~19-1ubuntu1 sudo apt install openjdk-8-jre-headless # version 8u292-b10-0ubuntu1
๐ŸŒ
LinuxConfig
linuxconfig.org โ€บ home โ€บ ubuntu 20.04 eclipse installation
Install Eclipse IDE on Ubuntu for Java Devs
May 12, 2020 - Learn how to install Eclipse IDE on Ubuntu for Java development, including Java setup and configuration. Start coding efficiently!
๐ŸŒ
DEV Community
dev.to โ€บ baddate โ€บ ubuntu-1804-install-java-and-eclipse-ide-4d84
Ubuntu 18.04 install Java and Eclipse IDE - DEV Community
March 8, 2019 - Download Eclipse IDE installer gz file. https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2018-12/R/eclipse-inst-linux64.tar.gz you can select an mirror site for downloading it.
Find elsewhere
๐ŸŒ
The Eclipse Foundation
eclipse.org โ€บ downloads โ€บ packages โ€บ installer
Installer | Eclipse Packages
We've recently introduced the Eclipse Installer, a new and more efficient way to install Eclipse. It is a proper installer (no zip files), with a self-extracting download that leads you through the installation process. For those who prefer not to use the Installer, the packages and zip files ...
๐ŸŒ
Linuxize
linuxize.com โ€บ home โ€บ ubuntu โ€บ how to install eclipse ide on ubuntu 18.04
How to Install Eclipse IDE on Ubuntu 18.04 | Linuxize
October 7, 2019 - Eclipse is the most widely used Java integrated development environment (IDE). In this tutorial we'll show you how to install the latest Eclipse IDE on an Ubuntu 18.04 machine.
๐ŸŒ
LinuxConfig
linuxconfig.org โ€บ home โ€บ ubuntu 22.04 eclipse installation
Install Eclipse on Ubuntu 22.04 - Step-by-Step
March 19, 2022 - Learn how to install Eclipse IDE on Ubuntu 22.04. Follow step-by-step commands to set up and launch this popular Java development environment.
๐ŸŒ
Javatpoint
javatpoint.com โ€บ how-to-install-eclipse-in-ubuntu
How to install Eclipse on Ubuntu 16.04 LTS?
How to Install Eclipse in Ubuntu for beginners and professionals with different software installation in ubuntu such as Java, PHP, MySQL, MariaDB, Node.js, MongoDB, Oracle, Apache, Eclipse, Netbeans, PhpMyAdmin, CouchDB, Drupal, Magento, Laravel, Wordpress, CodeIgniter etc.
๐ŸŒ
Linux Hint
linuxhint.com โ€บ install-eclipse-ide-ubuntu
How to install Eclipse IDE on Ubuntu โ€“ Linux Hint
In our case, we have selected the first option which is โ€œEclipse for IDE Java Developersโ€ and after its installation, you can open it either by typing eclipse in the terminal or clicking on the Applications tab and looking for the Eclipse application on the search bar as displayed below. After opening this application, you will see its home screen with multiple options and features and you can use them accordingly. If you want to uninstall this application then you can do that by clicking on the Ubuntu software application tab and then looking for the eclipse application in the installed tab as shown below.
๐ŸŒ
Tutorial for Linux
tutorialforlinux.com โ€บ step by step โ€“ eclipse java on ubuntu 21.04 installation
Step by step - Eclipse Java on Ubuntu 21.04 Installation โ€ข tutorialforlinux.com
April 26, 2021 - Open a Terminal window Ctrl+Alt+t on desktop (Press โ€œEnterโ€ to Execute Commands). In case first see: Terminal Quick Start Guide. ... Tags: Eclipse IDE Install Ubuntu 21.04, Eclipse IDE Install Ubuntu Hirsute, Eclipse IDE Ubuntu 21.04, Eclipse ...
๐ŸŒ
Geek Rewind
geekrewind.com โ€บ geek rewind โ€บ ubuntu linux โ€บ how to install eclipse ide on ubuntu 24.04
How to Install Eclipse IDE on Ubuntu 24.04 | Geek Rewind
March 20, 2026 - Easily install Eclipse IDE on Ubuntu 24.04 with our step-by-step guide. Perfect for Java developers seeking a powerful open-source environment.
๐ŸŒ
Ubuntu
help.ubuntu.com โ€บ community โ€บ EclipseIDE
EclipseIDE - Community Help Wiki
The important thing is to choose the JVM with sun in the title. To use the java-6-sun as the default JRE within Eclipse and to have it used in the build path of Java projects, click on Window -> Preferences -> Java -> Installed JREs and you will see the current JRE's available to Eclipse.
๐ŸŒ
ComputingForGeeks
computingforgeeks.com โ€บ home โ€บ install eclipse ide on ubuntu 22.04/20.04/18.04
Install Eclipse IDE on Ubuntu 22.04/20.04/18.04 [Guide]
March 21, 2026 - Eclipse IDE comes with intuitive Code editor with compiler, interpreter, syntax highlighting and debugging tools for your Programming Language. In this post, we will see how to install Eclipse IDE on Ubuntu 22.04/20.04/18.04 using Ubuntu Make. Eclipse is written in Java and you need to have ...