Ubuntu 22.04 Eclipse installation

Eclipse is a free Java IDE that can be installed on Ubuntu 22.04 Jammy Jellyfish. It is currently one of the most popular Java integrated development environments available.

In this tutorial, we will take you through the step by step instructions to install the Eclipse Java IDE on Ubuntu 22.04 Jammy Jellyfish as well as the Java prerequisites, via command line. Then, you can use it to import your current Java projects or develop new ones.

In this tutorial you will learn:

  • How to install Eclipse on Ubuntu 22.04
  • How to install Java prerequisites
  • How to launch Eclipse
Eclipse Java IDE on Ubuntu 22.04
Eclipse Java IDE on Ubuntu 22.04
Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Ubuntu 22.04 Jammy Jellyfish
Software Eclipse IDE for Java Developers
Other Privileged access to your Linux system as root or via the sudo command.
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

Ubuntu 22.04 Eclipse Java IDE installation step by step instructions



  1. Let’s begin with the Eclipse installation. Open up a command line terminal and execute the following snap command:
    $ sudo snap install --classic eclipse
    
    Eclipse installation command on Ubuntu 22.04
    Eclipse installation command on Ubuntu 22.04
  2. Eclipse IDE requires Java JRE as a prerequisite. Therefore, our next step is to install the default-jre package. To do so, run the following two apt commands:
    $ sudo apt update
    $ sudo apt install default-jre
    
    Installation of Eclipse Java prerequisite
    Installation of Eclipse Java prerequisite
  3. After installation has completed, use the top left Activities menu to search for eclipse application. Click on the relevant icon to start the Eclipse IDE.
    Search for and open the Eclipse Java IDE from the Activities menu
    Search for and open the Eclipse Java IDE from the Activities menu

    You can also launch the Eclipse Java IDE from command line by executing:

    $ eclipse
    
  4. Set your workspace directory when the IDE opens up. Then, you are ready to start programming.


Closing Thoughts

In this tutorial, we saw how to install Eclipse Java IDE on Ubuntu 22.04 Jammy Jellyfish Linux. We also learned how to install the Java JRE prerequisite package. Using the Snap package manager to install the Eclipse Java IDE means that the program will stay up to date automatically. Hopefully you find this free software to be a suitable environment for your Java coding.