Installing and Configuring IntelliJ IDEA on Windows 10

5,318 0

The previous article mentioned configuring the JDK for the Java development environment, so now let’s try compiling a Hello World with JDK 13.

Create a new file in the working directory, name it HelloWorld.java, and write the following code:

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

Open the working directory in cmd, compile the file with javac HelloWorld.java, and, if there are no errors and a HelloWorld.class file is generated, enter java HelloWorld to run it.

Compilation and execution result

The output is fine, but using Notepad++ every time you write code is not very convenient, so you need a powerful IDE to assist with Java development.

The most popular IDEs for Java development are Eclipse, NetBeans, and IntelliJ. The one I’m going to install now is the last one, IntelliJ IDEA.

Installation

IntelliJ IDEA official website

Open the Chinese version of IDEA’s official website, https://www.jetbrains.com/zh-cn/idea/, and click Download directly.

Download options

There are Ultimate and Community editions here. Generally, downloading the Community edition is enough, and it is open source and free. However, I have a student discount, so I have to go with the Ultimate edition. For details about JetBrains’ student discount, see https://www.jetbrains.com/zh-cn/student/. There are three ways to apply: an Edu email address, the GitHub Student Developer Pack, and a student ID card. As for how exactly to do it, I’ll leave that for now and write a detailed article about it next time.

Installation step 1

Installation step 2

Change the installation path, then click Next.

Installation step 3

Note that the options shown above are mainly for associating common file extensions and adding shortcuts. Generally speaking, you don’t need to select them.

Installation step 4

Basically, just keep clicking Next, and the installation will begin.

Installation complete

After the installation is complete, click Finish to close the window, then find and open IntelliJ IDEA from the Windows Start menu.

First launch

Select configuration file

On the first launch, you will be asked whether you have a configuration file. Select the second option (none).

Select theme

Next, choose a theme. I prefer the light one.

Plugin selection 1

There are a large number of plugins below. Enable them as needed. For example, you can turn off all the Git-related ones because I use another Git client. For Android, it’s best to enable the relevant plugins, since IntelliJ IDEA can also be used for Android development.

Plugin selection 2

Here is another batch of plugins. This time, I chose not to install any of them. Don’t worry: after installing the program, you can continue installing plugins in Settings-Plugins.

Start using IntelliJ IDEA

Click Start using IntelliJ IDEA to start using it directly.

Testing

After installing IDEA, let’s run Hello World to give it a try.

Run Hello World

Comments

(0)

No comments yet. Start the conversation.

Leave a comment