How to Install IntelliJ IDEA on Ubuntu 22.04 / Ubuntu 20.04

Ubuntu

IntelliJ IDEA is an integrated development environment for development Java Application. It is developed by JetBrains and is available in two editions, Community and Ultimate.

IntelliJ IDEA The core package supports the Java, Groovy, Kotlin and XML/XSL programming languages. Also, support for other languages ​​like Python, Perl, Go, Scala, etc can be added by installing JetBrains Plugins.

IntelliJ IDEA also supports building automation tools like MavenAnt, and Gradle and version control systems like Git and SVN.

Here, we will see how to install IntelliJ IDEA above Ubuntu 22.04 / Ubuntu 20.04.

system requirements

Make sure the system meets the minimum requirements below.

  • 2 GB free RAM
  • 4 GB free disk space
  • Minimum screen resolution 1024 × 768

Install IntelliJ IDEA on Ubuntu 22.04

We can install IntelliJ IDEA on Ubuntu using snap (simplest way) or download and install it manually.

1. Install IntelliJ IDEA Using Snap

First install snap package manager using apt command if the system does not have it.

sudo apt update && sudo apt install -y snapd

Then install IntelliJ IDEA using snap request.

sudo snap install intellij-idea-community --classic

IntelliJ IDEA installation will take some time, depending on internet connection speed.

After successful installation, you will see the following message.

intellij-idea-community 2022.1.1 from jetbrains✓ installed

You can start IntelliJ IDEA by go to Activity or command line.

2. Install IntelliJ IDEA Using Official Package

First, download latest version of IntelliJ IDEA from official website through web browser or run below command to download IntelliJ IDEA (v2022.1) in terminal.

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

Then unzip the downloaded package using tar command and move files to /opt category.

tar -zxvf ideaIC-*.tar.gz

sudo mkdir /opt/idea/

sudo chmod 777 /opt/idea/

mv idea-*/* /opt/idea/

Next, link the executable with /usr/bin folder so you can start IntelliJ IDEA using intellij-idea-community command from the terminal.

sudo ln -sf /opt/idea/bin/idea.sh /usr/local/bin/intellij-idea-community

Create a desktop entry to start IntelliJ IDEA from Activities menu.

sudo nano /usr/share/applications/idea-ce.desktop

Copy and paste the following into the file above.

[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Community Edition
Icon=/opt/idea/bin/idea.svg
Exec="/opt/idea/bin/idea.sh" %f
Comment=Capable and Ergonomic IDE for JVM
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea-ce
StartupNotify=true

Launch IntelliJ IDEA

You can start IntelliJ IDEA by going to Activities >> Search IntelliJ IDEA Community Edition or run intellij-idea-community command in the terminal.

When you start IntelliJ IDEA for the first time, you will get a setup window and you need to,

1. Click the check box I confirm that I have read and accepted the terms of this User Agreement and then click Continue button.

2. Select whether yes Submit anonymous statistics with JetBrains to improve its product or not.

Before you create a new one or open a project,

3. Click Custom to change themes, fonts, keymaps, and other settings.

4. Click additional to install the plugins you need for your project.

5. You can choose to create a New or open an existing project or import a project from version control systems like Git, GitHub, GitHub Enterprise, etc.

To make a new Java projectclick New, join the project Name and locationselect language is Javathen put JDK path for the project.

You can use the JDK that comes with IntelliJ IDEA, found in /install_directory/jbr/ or /snap/intellij-idea-community/current/jbr/ for Java project OR download JDK from internet by clicking Download JDK.

Finally, click Create.

IntelliJ IDEA on Ubuntu 22.04

Hope this helps!

Source link

Share: