Install IntelliJ IDEA on Linux

IntelliJ Idea the famous IDE for JVM languages including Java, Kotlin and Scala has recently changed its installation process with the version 2020.3. This article shows you how to install the latest IntelliJ Idea on any Linux system.

For whatever the reason, if you have to install an older version of IntelliJ Idea, please follow the article: Install IntelliJ IDEA 2020.2 and Older 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/ideaIU-2020.3.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-IU-203.5981.155 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:
If you already had an IntelliJ installed on your computer, you may be asked to import the existing settings. In the appeared dialog to import existing settings, choose "Do not import settings" if you want a fresh installation. I personally prefer not to import previous settings especially if there were any issues with the previous installations.

Install IntelliJ IDEA on Linux

Step 7:
Unlike the previous versions, you will get the welcome screen of IntelliJ Idea 2020.3 as shown below:

Install IntelliJ IDEA on Linux

Now you can close this window and proceed to the next step.


Step 8:
Create a new file named jetbrains-idea.desktop using your favourite editor with the following content:
[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Ultimate 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

Step 9:
Run the following command to install this shortcut:
sudo desktop-file-install jetbrains-idea.desktop

Step 10:
This point onward, IntelliJ IDEA is ready to use. Search for 'IntelliJ IDEA' in the start menu and open it.

Install IntelliJ IDEA on Linux

Step 11:
A common problem encountered in IntelliJ IDEA on Linux is: its default keyboard shortcuts assigned to the XWin environment. This may cause unexpected behaviors of keyboard shortcuts depending on the desktop environment. To fix this problem, switch to Customize and select your desktop environment in the Keymap dropdown list.
 
For example, I am using Linux Mint with Cinnamon which has shortcuts similar to Gnome desktop environment. Therefore, I choose GNOME keymap in the dropdown list.

Install IntelliJ IDEA on Linux

After installing IntelliJ Idea, you can tweak it further to boost your productivity. Take a look at 13 Things To Do After Installing IntelliJ Idea for further customization.
 
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 »

17 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
Sandeep Raghuwanshi
AUTHOR
December 5, 2020 at 7:57 AM delete

I followed above steps but I am wondering where is the intellij icon to open it, because its not showing in application manager

Reply
avatar
Gobinath
AUTHOR
December 12, 2020 at 8:57 AM delete

Hi, Sorry for the late response.
Did you follow the step 08?

Reply
avatar
Tejas shet
AUTHOR
May 7, 2021 at 9:42 AM delete

how to create a file jetbrains-idea.desktop i didnt get the step 8 pls some post the soln for that

Reply
avatar
Tejas shet
AUTHOR
May 7, 2021 at 9:43 AM delete

i m stuck at step 8 so pls some one get to know us.

Reply
avatar
Gobinath
AUTHOR
May 10, 2021 at 7:20 PM delete

Hi, Sorry for the late reply. just open gedit or any other text editor, copy paste the content and save it as jetbrains-idea.desktop Then run the desktop-file-install command as shown to install the desktop file.

Reply
avatar

Contact Form

Name

Email *

Message *