Getting IntelliJ IDEA up and running on a Linux distribution is a straightforward process that unlocks a powerful environment for Java, Kotlin, and virtually any other JVM language. The platform from JetBrains is renowned for its deep intelligence, where features like smart code completion and on-the-fly analysis feel less like tools and more like an extension of your thinking. This guide walks through the standard installation methods, ensuring you can start developing immediately.
Choosing the Right Edition
Before diving into the terminal, it is essential to decide which version aligns with your workflow. IntelliJ IDEA comes in two distinct flavors, each built for specific development needs.
Community vs. Ultimate
The Community edition is a fully free and open-source powerhouse, ideal for pure Java, Kotlin, Groovy, and Scala development. It provides the core intelligent coding assistance and tools required for lean and efficient programming. For those working within the Java EE ecosystem, such as Java Server Faces or JPA, the IntelliJ IDEA Ultimate edition is the target. This paid version adds support for web and enterprise frameworks, including Java EE, Spring, and JavaScript, making it a comprehensive solution for full-stack development.
Prerequisites and System Preparation
Ensuring your Linux machine meets the baseline requirements prevents performance bottlenecks and ensures a smooth experience. The minimum specifications are modest, but allocating adequate resources significantly enhances responsiveness.
Additionally, verify that you have a compatible version of Java installed. While the IDE bundles a JRE for general use, having a separate Java Development Kit (JDK) is necessary for compiling and running your applications. OpenJDK 11 or later is typically the standard target for modern development.
Installation via Command Line (Snap)
For users seeking a managed and auto-updating installation, the Snap store provides a reliable method. This approach handles dependencies and updates seamlessly in the background.
First, ensure your system repository index is current by running sudo apt update .
Install the Snap daemon if it is not already present using sudo apt install snapd .
Finally, install the IDE with the command sudo snap install intellij-idea-ultimate --classic or --community for the free edition.
The --classic flag is crucial as it grants the snap the necessary permissions to access the broader filesystem, allowing the IDE to function correctly.
Manual Installation with Snapcraft
If you prefer a graphical approach or are working on a distribution where the command line is less intuitive, the Snapcrafter tool offers a point-and-click solution. Many modern Linux distributions include a software center capable of handling Snap packages natively.
Simply searching for "IntelliJ IDEA" within your distribution's software store will surface the official snap package. Clicking install will handle the download, verification, and mounting of the application. This method abstracts the terminal entirely, making the IDE accessible to users who are more comfortable with GUI interactions.
Running IntelliJ from the Terminal
Once the binary is installed, launching the application requires a specific command to ensure the environment variables are configured correctly. Navigating to the installation directory and executing the shell script directly is the most reliable way to start the IDE.