How to Install Eclipse IDE on Ubuntu 24.04
Step-by-step tutorial on how to install Eclipse IDE on Ubuntu 24.04 LTS. Configure OpenJDK Java runtime, installer tarball, and desktop launcher icon.

6 min read
Step-by-step tutorial on how to install Eclipse IDE on Ubuntu 24.04 LTS. Configure OpenJDK Java runtime, installer tarball, and desktop launcher icon.
- Prerequisites and Supported Releases
- Step 1: Updating System Packages and Installing OpenJDK Java
- Step 2: Downloading the Official Eclipse Installer
Eclipse IDE is one of the most venerable and widely deployed integrated development environments in the enterprise software ecosystem. Originally created by IBM and maintained by the Eclipse Foundation, Eclipse provides an extensible, plugin-rich workbench for Java enterprise developers, C/C++ engineers, embedded systems programmers, and web developers.
With built-in support for Maven, Gradle, Git, JUnit testing, and the latest Java SE and Jakarta EE specifications, Eclipse remains an essential tool for enterprise application development. Learning how to install eclipse ide on ubuntu 24.04 gives developers a powerful, fully customizable workstation environment backed by Ubuntu's stable long-term support release.
In this comprehensive step-by-step tutorial, we demonstrate how to install Eclipse IDE on Ubuntu 24.04 LTS (Noble Numbat). We cover installing the prerequisite OpenJDK Java runtime environment, downloading and running the official Eclipse Foundation installer, setting up system-wide desktop launcher shortcuts, configuring JVM memory allocation in eclipse.ini, and exploring alternative Snap installations.
Install Eclipse IDE on Ubuntu 24.04 LTS using the official Eclipse Foundation installer or Snap package, configure OpenJDK Java runtime, and set up desktop integration.
Prerequisites and Supported Releases
This guide is thoroughly verified on Ubuntu 24.04 LTS (Noble Numbat). The instructions apply cleanly to cloud instances (AWS EC2, Google Compute Engine, DigitalOcean, Hetzner), bare-metal servers, and local virtual machines.
Before proceeding, ensure you have the following requirements satisfied:
- A desktop system running
Ubuntu 24.04 LTSwith a graphical desktop environment (GNOME, XFCE, or KDE). - A non-root user account with administrative
sudoprivileges. - At least
4 GB of RAM(8 GB strongly recommended for large Java projects and indexing). - At least 5 GB of free disk storage for the IDE and project workspace.
Step 1: Updating System Packages and Installing OpenJDK Java
Eclipse IDE is written in Java and requires a compatible Java Development Kit (JDK 17 or JDK 21) installed on the system to execute both the installer and the workbench.
Ubuntu 24.04 includes OpenJDK 21 LTS in its default repositories. Update your package database and install openjdk-21-jdk along with supporting download and extraction utilities.
Verify that the Java compiler and runtime are present and accessible.
# Update repository indices
sudo apt update && sudo apt upgrade -y
# Install OpenJDK 21 Development Kit and archive tools
sudo apt install -y openjdk-21-jdk tar wget curl
# Verify active Java version
java -version
javac -version
Step 2: Downloading the Official Eclipse Installer
The recommended method to install Eclipse is using the official Eclipse Installer provided by the Eclipse Foundation. The installer allows you to choose from various specialized editions (such as Eclipse IDE for Java Developers, Eclipse for Enterprise Java, or Eclipse for C/C++).
Download the latest 64-bit Linux installer tarball directly into your ~/Downloads folder using wget.
This ensures that you always receive the newest stable release directly from the project maintainers.
# Navigate to Downloads directory
cd ~/Downloads
# Download the official Eclipse Installer archive
wget 'https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2024-09/R/eclipse-inst-jre-linux64.tar.gz&r=1' -O eclipse-inst-linux64.tar.gz
Step 3: Extracting the Eclipse Installer Archive
Once the download completes, extract the archive. The tarball contains an eclipse-installer directory with the GUI setup program.
Extract the archive into your home folder or /opt directory for system-wide access.
Navigate into the extracted folder and verify the installer binary.
# Extract installer archive
tar -xzf eclipse-inst-linux64.tar.gz
# Move to /opt for system-wide access
sudo mv eclipse-installer /opt/
# Verify installer binary exists
ls -l /opt/eclipse-installer/eclipse-inst
Step 4: Running the Eclipse Installer Wizard
Launch the graphical installer directly from your terminal session.
When the installer window appears, choose your preferred package edition. For standard Java development, select Eclipse IDE for Java Developers. For web and Spring enterprise development, choose Eclipse IDE for Enterprise Java and Web Developers.
Specify the Java 21 VM path detected by the installer, choose an installation folder (such as ~/eclipse/java-2024-09), and click INSTALL.
Accept the software licenses and user agreements to allow the installer to download and unpack the workbench.
# Launch the graphical Eclipse Installer
/opt/eclipse-installer/eclipse-inst &
Step 5: Alternative Method — Installing Eclipse via Snap
If you prefer a package manager that automatically handles updates in the background without manual tarball management, Eclipse is also available as an official Snap package on Ubuntu 24.04.
Because Snap is natively pre-installed on Ubuntu 24.04, you can install the complete Eclipse IDE with a single command.
The --classic confinement flag is required to allow Eclipse access to the entire filesystem and external compilers.
# Install Eclipse IDE using Snap
sudo snap install --classic eclipse
# Verify snap installation
snap list eclipse
Step 6: Creating a Desktop Application Launcher
If you installed Eclipse via the tarball installer into ~/eclipse/java-2024-09/eclipse, create a .desktop shortcut file so that Eclipse appears in your GNOME application menu and search bar.
Create a new desktop entry file at /usr/share/applications/eclipse.desktop using administrative privileges.
Update the icon and executable paths according to your actual installation path.
# Create desktop launcher shortcut
sudo bash -c 'cat <<EOF > /usr/share/applications/eclipse.desktop
[Desktop Entry]
Name=Eclipse IDE
Comment=Java and Enterprise Development Environment
Exec=/home/ubuntu/eclipse/java-2024-09/eclipse/eclipse
Icon=/home/ubuntu/eclipse/java-2024-09/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Development;IDE;Java;
StartupWMClass=Eclipse
EOF'
# Note: Replace /home/ubuntu with your actual home directory path
sudo chmod 644 /usr/share/applications/eclipse.desktop
Step 7: Tuning Memory Allocation in eclipse.ini
For large-scale projects containing thousands of classes or heavy Maven/Gradle dependencies, the default Java Virtual Machine (JVM) heap size can cause OutOfMemory errors or sluggish indexing.
You can tune the maximum heap allocation by editing the eclipse.ini configuration file located in the Eclipse installation folder.
Adjust the -Xms (initial heap) and -Xmx (maximum heap) parameters to allocate more memory based on your system RAM.
# Open eclipse.ini in your editor
# nano ~/eclipse/java-2024-09/eclipse/eclipse.ini
# Recommended memory settings for systems with 8GB+ RAM:
# -Xms1024m
# -Xmx4096m
Step 8: Launching Eclipse and Configuring Workspace
Launch Eclipse from your application launcher or by executing the binary directly from terminal.
On first launch, Eclipse prompts you to select a Workspace directory (defaulting to ~/eclipse-workspace). The workspace stores your project files, local preferences, and plugin configurations.
Check Use this as the default and do not ask again and click Launch.
You are now ready to create new Java projects, configure Git repositories, and install third-party plugins from the Eclipse Marketplace.
# Launch Eclipse from terminal
eclipse &
Troubleshooting and Common Errors
When configuring Ubuntu servers, unexpected permission errors, network timeouts, or lock contention can occur. Review these common issues and verified resolutions:
Eclipse fails to start with 'A Java Runtime Environment (JRE) or JDK must be available'
Resolution: Ensure OpenJDK is installed by running sudo apt install -y openjdk-21-jdk. You can also explicitly specify the JVM path in eclipse.ini by adding -vm /usr/lib/jvm/java-21-openjdk-amd64/bin/java before the -vmargs line.
UI elements and fonts appear tiny on 4K / High-DPI displays
Resolution: Set the GDK scaling environment variable before launching Eclipse: export GDK_SCALE=2 or add -Dsun.java2d.uiScale=2 to the end of eclipse.ini.
Permission denied when saving projects in workspace
Resolution: Ensure your workspace folder is owned by your current user: sudo chown -R $USER:$USER ~/eclipse-workspace. Never launch Eclipse using sudo eclipse.
Security Best Practices and Hardening
Always download Eclipse tarballs and installer packages directly from official https://www.eclipse.org mirrors to protect against modified binaries.
Never run Eclipse as the root user. Doing so can cause file permission issues across user workspaces and poses a security risk when executing third-party plugins.
Only install plugins from trusted authors via the Eclipse Marketplace or verified update sites.
Keep OpenJDK and underlying system libraries updated to ensure prompt patches for TLS and Java security vulnerabilities.
Related Ubuntu Tutorials and Documentation
Deepen your Linux system administration skills with our related production-tested guides:
Authoritative References and Official Documentation

The Linux Command Line, 2nd Edition: A Complete Introduction
Frequently Asked Questions
Quick answers to common questions and configurations
Editorial Disclosure: Website Vidya is supported by our readers. When you purchase hosting, tools, or software through our verified partner links, we may earn an affiliate commission at no extra cost to you. We only recommend solutions we trust and rigorously verify.
Rajesh Ray
I’m Rajesh Rai, a full-stack developer, Linux administrator, and technology enthusiast passionate about making complex technology easier to understand and use.
Most Read Guides
TrendingUbuntu Server Not Booting? 10 Simple Steps to Fix It Fast
How to Create a 3D Button in HTML and CSS: Easy Steps
How to Install Python and Pip on Ubuntu 24.04 LTS
How to Install Nginx on Ubuntu 24.04
How to Install Python on Ubuntu 24.04 LTS
Related Technical Guides
Tested runbooks, server administration walkthroughs, and troubleshooting guides


Join the Conversation & Perspective
Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.
No comments on this guide yet. Be the first to share your thoughts or ask a question!