IntelliJ IDEA is a Java integrated development environment (IDE) created by JetBrains. It has built-in support for Java, Kotlin, Groovy, and XML/XSL languages. Additionally, you can also install plugins to support other languages such as Go, Python, Perl, Erlang, etc.
It also supports the integration of build automation tools such as Maven, Ant, and Gradle, version controls systems such as Git and SVN.
In this guide, we will see how to install IntelliJ IDEA on Fedora 35 / Fedora 34.
System Requirements
Ensure your system has a minimum of 2 GB RAM, 2.5 GB of disk space, and a 1024×768 display resolution for IntelliJ IDEA installation.
Install IntelliJ IDEA on Fedora 35
IntelliJ IDEA is available in two editions, community and ultimate. It should be noted that there are few programming languages and technologies only supported in IntelliJ IDEA ultimate edition. Therefore, before installing IntelliJ IDEA, compare the editions, and decide which one suits your needs.
You can follow any one of the below methods to install IntelliJ IDEA on Fedora 35.
1. Using Snap 2. Using Official Package
1. Install IntelliJ IDEA Using Snap
IntelliJ IDEA is available as a snap package for Fedora operating system. So, first, install the Snap package on your system if it is not already installed.
sudo dnf install -y snapd sudo ln -s /var/lib/snapd/snap /snap sudo snap install core && sudo snap refresh core
Then, install IntelliJ IDEA using the snap command.
sudo snap install intellij-idea-community --classic
The installation will take some time to complete. After the installation of IntelliJ IDEA, verify the installation using the below command.
sudo snap list intellij-idea-community
Output:
Name Version Rev Tracking Publisher Notes intellij-idea-community 2021.2.3 330 latest/stable jetbrains✓ classic
2. Install IntelliJ IDEA From Official Archive
Download the latest version of IntelliJ IDEA Community Edition from the official website or use the below command to download the IntelliJ IDEA CE v2021.2.3 using the terminal. In case you want to install the IntelliJ IDEA ultimate edition, you can download this package.
wget https://download.jetbrains.com/idea/ideaIC-2021.2.3.tar.gz
After downloading the package, extract it using the tar command.
tar -zxvf ideaIC-*.tar.gz sudo mkdir /opt/idea/ sudo chmod 777 /opt/idea/ mv idea-*/* /opt/idea/
Then, link the executable to /bin directory so that you can start IntelliJ IDEA using the intellijidea-ce command from the terminal.
sudo ln -sf /opt/idea/bin/idea.sh /bin/intellijidea-ce
Next, create a desktop entry so that you start IntelliJ IDEA from the Activities menu.
sudo nano /usr/share/applications/android-studio.desktop
Use the following information in the above file.
[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 launch IntelliJ IDEA by going to Activities >> search for IntelliJ IDEA Community Edition or using the intellijidea-ce command in the terminal.
You will get an IntelliJ IDEA window, and you will need to,
1. Click the checkbox I confirm that I have read and accept the terms of this User Agreement and then click the Continue button.
2. You can wish to Send Anonymous Statistics or Don’t send anonymous statistics.
Before you create a new or open a project,
3. Click Customize to change the theme, font, and other settings.
4. Click Plugins to install the plugins you will 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 such as Git, GitHub, Subversion, etc.
To create a new Java project, click new and set the Java SDK path in IntelliJ IDEA. To do that, Java >> Project SDK >> Add SDK or Download SDK
You can use the SDK that comes with IntelliJ IDEA, found under /install_directory/jbr or /snap/intellij-idea-community/current/jbr/ directory for your Java project.
Click Next and then again Next on Create Project from Template >> enter Project Name and finally click Finish.
The following screenshot shows the IntelliJ IDEA community edition running on Fedora.
Sumber: disini