How To Install IntelliJ IDEA on Ubuntu 22.04 LTS

Introduction

In this tutorial, we learn how to install IntelliJ IDEA on Ubuntu 22.04 LTS (Jammy Jellyfish).

IntelliJ IDEA is an Integrated Development Environment (IDE) for JVM languages designed to maximize developer productivity. It does the routine and repetitive tasks for you by providing clever code completion, static code analysis, and refactorings, and lets you focus on the bright side of software development, making it not only productive but also an enjoyable experience.

Prerequisites

  • Ubuntu 22.04 installation including its variant like Kubuntu 22.04 / Xubuntu 22.04
  • root / sudo access to the system

Install Using Snap

We can install IntelliJ IDEA using snap. You can use one of the command below to install IntelliJ IDEA based on the edition that you have:

Install IntelliJ IDEA Community Edition

To install IntelliJ IDEA community edition using snap you can use the command below

sudo snap install intellij-idea-community --classic

Install IntelliJ IDEA Ultimate Edition

To install IntelliJ IDEA ultimate edition using snap you can use the command below

sudo snap install intellij-idea-ultimate --classic

Install IntelliJ IDEA Education Edition

To install IntelliJ IDEA education edition using snap you can use the command below

$ sudo snap install intellij-idea-educational --classic

Install Using Toolbox App

Download Toolbox App using the command below:

wget -c https://download.jetbrains.com/toolbox/jetbrains-toolbox-1.24.12080.tar.gz

Extract downloaded toolbox using the command below (note: to get the latest version you can visit JetBrains Toolbox App page:

sudo tar -xzf jetbrains-toolbox*.tar.gz -C /opt

Open the toolbox app

/opt/jetbrains-toolbox-1.24.12080/jetbrains-toolbox

IntelliJ IDEA Standalone Installation

wget -c https://download.jetbrains.com/idea/ideaIC-2022.1.2.tar.gz

extract

sudo tar -xzf ideaIC-2022.1.2.tar.gz -C /opt

Open IntelliJ IDEA using the command below

/opt/idea-IC-221.5787.30/bin/idea.ssh

Install via PPA

Install software-properties common so we can have apt-add-repository command and apt-transport-https to enable https support. You can use the the command below:

sudo apt install software-properties-common apt-transport-https

Add Marcel Kapfer PPA repostory using the command below:

sudo add-apt-repository ppa:mmk2410/intellij-idea

Update apt metadata

sudo apt update

Install IntelliJ IDEA using the command below

sudo apt install intellij-idea-community

Running IntelliJ IDEA

If you’re installing IntelliJ IDEA using apt or snap, you can start the IntelliJ IDEA software by using the below command that corresponds to your edition:

To run IntelliJ IDEA Community edition you can use the command below

intellij-idea-community

To run IntelliJ IDEA Ultimate edition you can use the command below

intellij-idea-ultimate

To run IntelliJ IDEA Education edition you can use the command below

$ intellij-idea-educational

Summary

In this tutorial, we learn various ways to install IntelliJ IDEA. We learned installing IntelliJ using snap, toolbox app, apt and install it as standalone