Install IntelliJ IDEA on Linux

This article shows you how to install the famous Java IDE: IntelliJ IDEA on Linux. You do not need Java to run IntelliJ IDEA since it comes with Java Runtime Environment to run the IDE. However, it is highly recommended to have Oracle JDK for the development purpose.

Install IntelliJ IDEA on Linux

Step 01:
Download the latest version of IntelliJ IDEA from the official website.




Step 2:
Open the Terminal (Ctrl + Alt + T) and enter the following command to change the directory.
cd /opt/

Step 3:
Enter the command given below to extract IntelliJ IDEA from ~/Downloads directory. If the downloaded file is in another directory, replace the last parameter by the actual file path.
sudo tar -xvzf ~/Downloads/ideaIC-2020.2.tar.gz

Step 4 (Optional):
I prefer to rename the IntelliJ folder unless I have multiple versions of the IDE. If you want the same, enter the following command to remove the version from the folder name.
sudo mv idea-IC-202.6397.94 idea

Step 5:
Open IntelliJ IDEA from the terminal using the following command. Note that there is no sudo in front of the command.
/opt/idea/bin/idea.sh

Step 6:
In the appeared dialog to import existing settings, choose "Do not import settings" if you want a fresh installation. If you already have an IntelliJ IDEA, you can import the previous settings by selecting the first option.

Install IntelliJ IDEA on Linux
Step 7:
In the next dialog, you will be asked to select a UI theme. Depending on your preference, select the theme and click Next.
Install IntelliJ IDEA on Linux

Step 8:
Now, you will be provided an option to create the desktop entry. I prefer to create the desktop entry for all users. Therefore, I select the "For all users..." option and click Next.
Install IntelliJ IDEA on Linux

Step 9:
If you want to launch IntelliJ IDEA from Terminal, creating a launcher script makes your life easier. Depending on your requirement, you can enable this feature.
Install IntelliJ IDEA on Linux

Step 10:
In this step you can install the default plugins. You can always install them later in the Settings dialog. So just click the Next button.
Install IntelliJ IDEA on Linux

Step 11:
In addition to the default plugins, IntelliJ recommends some featured plugins to install. As mentioned in the last step, any plugin can be installed from the Settings dialog. Therefore, you can just click the "Start using IntelliJ IDEA" button.
Install IntelliJ IDEA on Linux
Depending on the options you chose in the previous steps, you may be asked to enter the root password to create desktop entry and/or launcher script for all users.

Step 12:
This point onward, IntelliJ IDEA is ready to use. However, you can notice that still, we are running the IDE from the Terminal.

Install IntelliJ IDEA on Linux

Step 11:
Close the IDE and search for 'IntelliJ IDEA' in the start menu and open it.

Install IntelliJ IDEA on Linux

Step 12:
A common problem encountered in IntelliJ IDEA on Linux is its default keyboard shortcuts assigned to the Windows environment. This may cause unexpected behaviors of keyboard shortcuts on Linux environment. To fix this problem, open IntelliJ IDEA, go to SettingsKeymap and select "GNOME" or "KDE" in the Keymap dropdown list.

Install IntelliJ IDEA on Linux
I hope this helped you to install IntelliJ IDEA on your Linux machine. Feel free to comment below your if this helps or if you hit any problems while installing IntelliJ IDEA.
Previous
Next Post »

12 comments

Write comments
Pranavan Theivendiram
AUTHOR
June 15, 2015 at 6:47 AM delete

Hi. Gobi. Looks Great.
Can I know why you are installing inside /opt/ directory? (We need permission right.)

Reply
avatar
Gobinath
AUTHOR
June 16, 2015 at 3:20 AM delete

Hi Pranavan,
If we extract the applications in home directory, they will be available for the current user only. /opt/ directory is reserved for all the software and add-on packages that are not part of the default installation.

For more details about /opt/:
http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/opt.html

Reply
avatar
Pranavan Theivendiram
AUTHOR
June 16, 2015 at 6:04 AM delete

Cool. In my case, I am using Home directory and using the shell files to start up the program. As you said, it will be good if I use this method since other users can use it. :)

Reply
avatar
Harkediansa
AUTHOR
June 5, 2016 at 11:58 PM delete

Thanks.. it helps me a lot..

Reply
avatar
Gobinath
AUTHOR
June 7, 2016 at 11:08 PM delete

You are welcome. :-)

Reply
avatar
Azmath
AUTHOR
September 27, 2016 at 12:31 AM delete

How to install 2 versions of Intellij idea in Ubuntu?
Suppose I have IJ 14 working fine , I want to install IJ 16 and I extract it to /opt.Then when I use
"gedit intellij-idea.desktop" it opens the file which I have saved for IJ 14.

Reply
avatar
Gobinath
AUTHOR
October 4, 2016 at 10:15 AM delete

Sorry for the late response. Create the launcher using a different file name. For example, use "gedit intellij-idea-16.desktop" and continue with Step 5, 6, 7. If you prefer, use a different name and/or icon in step 5.

Reply
avatar
NitaM
AUTHOR
September 5, 2018 at 4:30 PM delete

How do you remove the App icon from the Applications menu?

Reply
avatar
Gobinath
AUTHOR
December 11, 2018 at 6:56 AM delete

If you installed using the above method, you can remove the icon by executing the following command:

sudo rm /usr/share/applications/intellij-idea.desktop

Reply
avatar
Sanoob
AUTHOR
June 19, 2019 at 7:41 AM delete

[xxx@slc /opt]$ /opt/idea/bin/idea.sh
Invalid IDE Configuration: Config directory '/home/xxx/.IdeaIC2019.1/config' is invalid.
If you have modified the 'idea.config.path' property, please make sure it is correct,
otherwise please re-install the IDE.
[xxx@slc /opt]$ /opt/idea/bin/idea.sh
Invalid IDE Configuration: Config directory '/home/xxx/.IdeaIC2019.1/config' is invalid.
If you have modified the 'idea.config.path' property, please make sure it is correct,
otherwise please re-install the IDE.

I am stuck at step 5 with the above error. can i get some help please?

Reply
avatar
Gobinath
AUTHOR
June 19, 2019 at 8:58 AM delete

Hi,
Please delete the config folder and start Idea again.
```
rm -rf ~/.IdeaIC2019.1
```

Reply
avatar
mikethomson
AUTHOR
December 6, 2019 at 1:29 AM delete

I respect this
article for the all around scrutinized content and superb wording. I got so
included in this material that I couldn't quit perusing. I am inspired with
your work and expertise. Much thanks to you to such an extent.
generate
ideas

Reply
avatar

Contact Form

Name

Email *

Message *