DEV Community

Cover image for IntelliJ IDEA on Ubuntu: Begin Your Journey into Java Development!
Ricardo Caselati
Ricardo Caselati

Posted on

IntelliJ IDEA on Ubuntu: Begin Your Journey into Java Development!

Hello, young Padawan! ๐Ÿง‘โ€๐Ÿ’ป Itโ€™s time to embark on an epic journey into the world of Java development, and our trusted companion will be the powerful IntelliJ IDEA. Ready? Letโ€™s go!

Before we start, we need to download the tool. But take a deep breath and hold your excitement, young apprentice! IntelliJ comes in two versions: a paid one (Ultimate Edition) and a free one (Community Edition). To get started, I recommend the Community Edition. Simply visit the official website, scroll down a bit, and click the button to download the free version.

Image description

Here's the link:
Download IntelliJ IDEA ๐Ÿ‘‰ Link

Ready to install? Follow the steps below:

Step 1: Extract the File

Open a terminal and navigate to the directory where the file was downloaded (usually ~/Downloads):

cd ~/Downloads
Enter fullscreen mode Exit fullscreen mode

Now, extract the .tar.gz file using the following command:

tar -xzf ideaIU-*.tar.gz
Enter fullscreen mode Exit fullscreen mode

This will create a folder containing the IntelliJ IDEA files.

Step 2: Move the Files

To keep your system organized, move the extracted folder to the /opt directory (recommended for manually installed programs):

sudo mv idea-IU-* /opt/intellij
Enter fullscreen mode Exit fullscreen mode

Step 3: Run IntelliJ IDEA

Go to the IntelliJ directory and start the program:

cd /opt/intellij/bin
./idea.sh
Enter fullscreen mode Exit fullscreen mode

And voilร ! ๐ŸŽ‰ The IDE will open, and you can configure it according to your preferences.

Step 4: (Optional) Create a System Shortcut

To make accessing IntelliJ easier, letโ€™s create a shortcut in Ubuntuโ€™s application menu:

Open a text editor to create a shortcut file:

sudo nano /usr/share/applications/intellij-idea.desktop
Enter fullscreen mode Exit fullscreen mode

Add the following content to the file:

[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA
Icon=/opt/intellij/bin/idea.png
Exec="/opt/intellij/bin/idea.sh" %f
Comment=The most intelligent Java IDE
Categories=Development;IDE;
Terminal=false
StartupNotify=true
Enter fullscreen mode Exit fullscreen mode

Save and close the file (press Ctrl+O, then Enter, and Ctrl+X).

Now, IntelliJ IDEA will appear in your Ubuntu application menu. Easy, right?

Youโ€™re now ready to explore the amazing world of Java development! ๐Ÿš€ In the next post, weโ€™ll take the first step by creating a Hello World program. See you then! ๐Ÿ‘‹

Top comments (0)