Fading Coder

One Final Commit for the Last Sprint

Home > Tech > Content

IntelliJ IDEA: Installation and First Program Guide

Tech Aug 25 15

Introduction to IDEA

IDEA, short for IntelliJ IDEA, is an integrated development environment for Java. It is widely regarded in the industry as one of the best Java development tools available.

Key Advantages of IDEA

✅ Powerful Capabilities
① Strong integration with tools like Git, Maven, and Spring.
② Out-of-the-box experience: built-in version control systems and multi-language framework support are ready to use without additional plugins.

✅ Ergonomic Design
① Highly intelligent features: fast smart code completion, real-time code analysis, and reliable refactoring tools.
② Quick, convenient, and broad prompt functionality.
③ Useful keyboard shortcuts and code templates.
④ Precise search capabilities.

Uninstalling IDEA

✅ The following steps use Windows 10 as an example. Navigate to "Add or remove programs" from "This PC," locate the IDEA installation, and uninstall it.

Uninstall interface location

✅ Check both options shown below, then click "Uninstall" and wait for the process to complete.

Uninstall options

Installing IDEA

IDEA download page: https://www.jetbrains.com//idea/download/#section=windows
Two editions are available: Ultimate and Community.
Here, we will download the Community edition.

Download page showing editions

Choose the correct version for your operating system. For Windows, select the Community edition and click "Download."

Download button highlighted

Locate the installer file and double-click it to start the installation.

Installer file

✅ Click "Next."

Welcome screen

✅ Here, we choose a custom installation path (D:\IDEA Community 2022.3.1), but you can keep the default and click "Next."

Installation path selection

✅ Check both options shown, then click "Next."

Installation options

✅ Finally, click "Install" and wait for the process to complete.

Install button

First Program: Hello World

Steps to write a Java program:

  1. Create a Project.
  2. Create a Module.
  3. Create a Package.
  4. Create a Class.

✅ Double-click to open IDEA. Check "Do not import settings" and click "OK."

Import settings screen

IDEA welcome screen

✅ Select "New Project," choose to create an empty project named "JavaBasic," and click "Create."

New project dialog

Project creation

✅ Right-click the project and create a module named "MyApp."

Module creation

Module naming

✅ Right-click the src folder under the module and create a package named "myapp."

Package creation

Package naming

✅ Right-click the package and create a class named "MyFirstApp."

Class creation dialog

Class naming

✅ Write the program to output "Hello World":

package myapp;

public class MyFirstApp {
   public static void main(String[] args) {
       System.out.println("Hello World");
   }
}

The output will be:

Program output

💬 Quick Tip:
😍 Type psvm to quickly generate the main method entry point:

public static void main(String[] args)

😍 Type sout to quickly generate the output statement:

System.out.println();

Live template demonstration

Related Articles

Understanding Strong and Weak References in Java

Strong References Strong reference are the most prevalent type of object referencing in Java. When an object has a strong reference pointing to it, the garbage collector will not reclaim its memory. F...

Comprehensive Guide to SSTI Explained with Payload Bypass Techniques

Introduction Server-Side Template Injection (SSTI) is a vulnerability in web applications where user input is improper handled within the template engine and executed on the server. This exploit can r...

Implement Image Upload Functionality for Django Integrated TinyMCE Editor

Django’s Admin panel is highly user-friendly, and pairing it with TinyMCE, an effective rich text editor, simplifies content management significantly. Combining the two is particular useful for bloggi...

Leave a Comment

Anonymous

◎Feel free to join the discussion and share your thoughts.