How to Install IntelliJ IDEA on Ubuntu 24.04
Learn how to install IntelliJ IDEA on Ubuntu 24.04 LTS. Step-by-step tutorial covering Snap installation, manual tarball setup, desktop launcher, and Java JDK.

7 min read
Learn how to install IntelliJ IDEA on Ubuntu 24.04 LTS. Step-by-step tutorial covering Snap installation, manual tarball setup, desktop launcher, and Java JDK.
- Prerequisites and Supported Releases
- Step 1: Updating System Packages and Installing OpenJDK Java Runtime
- Step 2: Method 1: Installing IntelliJ IDEA Community Edition via Snap
IntelliJ IDEA, engineered by JetBrains, is widely regarded as the premier integrated development environment (IDE) for Java, Kotlin, Groovy, Scala, and modern polyglot software engineering. Available in both a free open-source Community Edition and a feature-rich commercial Ultimate Edition, IntelliJ IDEA features ergonomic code completion, instant code inspection, automated refactoring pipelines, built-in Git tooling, integrated terminal terminals, and comprehensive build tool support for Maven and Gradle.
Developing software on Ubuntu paired with IntelliJ IDEA provides exceptional compiler performance, smooth file indexing, and direct integration with Docker and Linux development containers. Learning how to install intellij idea on ubuntu 24.04 provides developers with a world-class coding environment equipped with deep code understanding, automated refactoring, and seamless version control.
In this comprehensive step-by-step tutorial, we demonstrate how to install IntelliJ IDEA on Ubuntu 24.04 LTS (Noble Numbat). We cover installing OpenJDK, deploying IntelliJ IDEA via Canonical's official Snap repository (Community and Ultimate editions), setting up an alternative standalone tarball in /opt/intellij-idea, creating GNOME desktop shortcuts, managing toolchains via JetBrains Toolbox, and tuning Linux kernel inotify file watch limits for high-performance indexing.
Install and configure IntelliJ IDEA (Community or Ultimate Edition) on Ubuntu 24.04 LTS using the official Snap package or standalone tarball with OpenJDK Java runtime.
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 workstation running
Ubuntu 24.04 LTS(64-bit architecture). - A non-root user account configured with administrative
sudoprivileges. - At least
4 GB of RAM(8 GB to 16 GB recommended for enterprise Java, Spring Boot, and Kotlin development). - At least
5 GB of available disk spacefor IDE installation, caches, and SDK toolchains.
Step 1: Updating System Packages and Installing OpenJDK Java Runtime
Although modern releases of IntelliJ IDEA bundle an optimized JetBrains Runtime (JBR) based on OpenJDK to power the IDE application itself, compiling and testing your own Java projects requires a system-level Java Development Kit (JDK).
Update your local APT repository index and install OpenJDK 21, the default long-term support Java release on Ubuntu 24.04.
Verify that the Java compiler (javac) and runtime (java) are active on your system path.
# Update APT package repositories
sudo apt update && sudo apt upgrade -y
# Install OpenJDK 21 JDK and development tools
sudo apt install -y default-jdk git curl
# Verify Java version
java -version
javac -version
Step 2: Method 1: Installing IntelliJ IDEA Community Edition via Snap
The recommended and most straightforward method to install IntelliJ IDEA on Ubuntu is using the official Snap package maintained directly by JetBrains.
The Community Edition is free for personal and commercial development, offering complete support for Java, Kotlin, Maven, Gradle, Android, and Git.
Install IntelliJ IDEA Community with the --classic confinement flag to grant the IDE access to your system compilers and local repositories.
Once installed, the IDE updates automatically in the background whenever JetBrains publishes new builds.
# Install IntelliJ IDEA Community Edition via Snap
sudo snap install intellij-idea-community --classic
# Verify installed Snap package
snap list intellij-idea-community
Step 3: Installing IntelliJ IDEA Ultimate Edition via Snap (Alternative)
If your engineering workflows require enterprise web frameworks (such as Spring Boot, Jakarta EE, Micronaut, Quarkus), full-stack JavaScript/TypeScript support, and integrated database tools, install the Ultimate Edition.
JetBrains provides a 30-day free trial for the Ultimate Edition, after which a commercial subscription or educational license is required.
Execute the following command to install the Ultimate Edition using Snap.
# Install IntelliJ IDEA Ultimate Edition via Snap
sudo snap install intellij-idea-ultimate --classic
# Verify installation
snap list intellij-idea-ultimate
Step 4: Method 2: Manual Standalone Installation via Official Tarball
If your organization restricts Snap packages or requires strict offline deployments, you can install IntelliJ IDEA using the official standalone tarball from JetBrains.
Download the official Linux archive from the JetBrains distribution server into /tmp.
Extract the archive into the /opt/ system directory and create a symbolic link in /usr/local/bin/ so the IDE can be launched from any terminal prompt.
# Download IntelliJ IDEA Community tarball
cd /tmp
wget https://download.jetbrains.com/idea/ideaIC-2024.1.4.tar.gz -O intellij.tar.gz
# Extract archive into /opt/intellij-idea
sudo mkdir -p /opt/intellij-idea
sudo tar -xzf intellij.tar.gz -C /opt/intellij-idea --strip-components=1
# Create system symbolic link
sudo ln -sf /opt/intellij-idea/bin/idea.sh /usr/local/bin/idea
# Clean up downloaded archive
rm -f /tmp/intellij.tar.gz
Step 5: Creating a GNOME Desktop Launcher for Standalone Installation
If you installed IntelliJ IDEA via the standalone tarball method in Step 4, create a standard desktop launcher so the IDE appears in your Ubuntu application dashboard, dock, and search results.
Create a desktop entry file at /usr/share/applications/intellij-idea.desktop.
Specify the path to the executable script (/opt/intellij-idea/bin/idea.sh) and the application icon (/opt/intellij-idea/bin/idea.png or idea.svg).
Update the desktop application cache to register the launcher.
# Create desktop launcher configuration
sudo bash -c 'cat <<EOF > /usr/share/applications/intellij-idea.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA
Comment=Capable and Ergonomic Java IDE by JetBrains
Exec=/opt/intellij-idea/bin/idea.sh %f
Icon=/opt/intellij-idea/bin/idea.svg
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-idea
Categories=Development;IDE;Java;
EOF'
# Update desktop application database
sudo update-desktop-database
Step 6: Method 3: Managing IDEs with the JetBrains Toolbox App
For developers who maintain multiple JetBrains IDEs (such as IntelliJ IDEA, PyCharm, WebStorm, and DataGrip) or need to switch between Early Access Program (EAP) and stable builds, JetBrains offers the JetBrains Toolbox App.
Toolbox runs in the system tray, automatically handling one-click updates, rollback to previous builds, and memory allocation tuning across all installed IDEs.
Download the Toolbox tarball from JetBrains, extract it, and launch the binary.
# Download and extract JetBrains Toolbox App
cd /tmp
wget -O jetbrains-toolbox.tar.gz "https://data.services.jetbrains.com/products/download?platform=linux&code=TBA"
sudo tar -xzf jetbrains-toolbox.tar.gz -C /opt/
# Launch Toolbox to install IDEs through graphical manager
/opt/jetbrains-toolbox-*/jetbrains-toolbox &
Step 7: Launching IntelliJ IDEA and Completing the Initial Setup
Launch IntelliJ IDEA by clicking the IntelliJ icon in your Ubuntu Applications dashboard, or by typing idea or intellij-idea-community in your terminal.
On first launch, review and accept the JetBrains User Agreement.
Choose your preferred UI theme (Darcula dark theme or Light theme) and configure your keyboard mapping scheme.
On the Welcome Screen, you can create a new project, open an existing codebase, or clone a repository directly from GitHub or GitLab.
# Launch IntelliJ IDEA Community from terminal in background
intellij-idea-community &
# Verify active process
pgrep -l -f idea
Step 8: Tuning Inotify File Watcher Limits for Large Projects
By default, the Linux kernel sets a conservative limit on the number of directory inotify file watchers (typically 8,192). Large enterprise projects with thousands of source files, Gradle caches, and node_modules directories can easily exceed this threshold.
When this occurs, IntelliJ displays a warning stating: 'External file changes sync may be slow: File watch limit was reached'.
Increase the file watcher limit permanently by creating a sysctl configuration file at /etc/sysctl.d/60-jetbrains.conf and setting fs.inotify.max_user_watches = 524288.
Apply the settings immediately without rebooting.
# Increase inotify file watch limit for IDE indexing
echo "fs.inotify.max_user_watches = 524288" | sudo tee /etc/sysctl.d/60-jetbrains.conf
# Apply the new sysctl parameters
sudo sysctl -p /etc/sysctl.d/60-jetbrains.conf
# Verify updated limit
cat /proc/sys/fs/inotify/max_user_watches
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:
IntelliJ IDEA fails to launch with 'Cannot find bundled Java runtime'
Resolution: If using the standalone tarball, ensure the jbr directory exists inside the IntelliJ root. You can also specify an external JDK by exporting export IDEA_JDK=/usr/lib/jvm/java-21-openjdk-amd64 in your ~/.bashrc.
File indexing is sluggish and CPU usage remains high
Resolution: Increase the maximum heap memory allocated to IntelliJ. In the IDE, go to Help > Change Memory Settings, increase the Maximum Heap Size from 2048 MB to 4096 MB (or higher if you have 16 GB+ RAM), and restart.
Snap installation fails with 'classic confinement requires --classic'
Resolution: Because IDEs require access to filesystem compilers, build tools, and terminal shells, you must pass the --classic flag: sudo snap install intellij-idea-community --classic.
Security Best Practices and Hardening
Never execute IntelliJ IDEA with root or sudo privileges. Running an IDE as root creates permission conflicts in user directories and allows untrusted build scripts to run with root access.
Always inspect unfamiliar Gradle or Maven build scripts before opening untrusted open-source projects.
Keep IntelliJ IDEA and third-party plugins updated promptly to address vulnerabilities in code parsing and network libraries.
Store API keys, database passwords, and cloud tokens in environment variables or a secrets manager rather than hardcoding them in repository files.
Related Ubuntu Tutorials and Documentation
Deepen your Linux system administration skills with our related production-tested guides:
Authoritative References and Official Documentation

The Science Book: Big Ideas Simply Explained
Frequently Asked Questions
Quick answers to common questions and configurations
sudo snap refresh intellij-idea-community.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!