1. Introduction

Now that you’re committed to Java development, how can you avoid having a handy IDE? Just the so-called work to do good. Must first advantage of its device, an IDE in the hand is like the TV drama of the magic weapon, can let us greatly increase the power, greatly improve our efficiency.

But there are so many IDEs on the market right now, like Eclipse, IntelliJ IDEA, NetBeans… Which one should we choose? Since I can’t make a decision, I’ll choose it for you! If you have not been contacted, then direct IDEA, the following to the installation of IDEA!

2. Preparations before installation

Before we start the installation, we need to do some preparation, first of all, which one to choose between Community Edition and Ultimate Edition, and then the hardware and software support.

2.1 Ultimate vs. Community

For the Ultimate Edition and the Community Edition, I selected the differences shown below from the comparison given on the official website. You can see that the Ultimate version is much more powerful than the Community version in terms of language support, framework support, Build tools, deployment tools, version control, etc. But the biggest difference is one that we are most concerned about: the Ultimate version costs money, while the Community version is free, so you can choose according to your needs.

2.2 software

  • IntelliJ IDEA installation package, download address: https://www.jetbrains.com/ide…

2.3 hardware

Configuration items minimum The recommended configuration
memory 2G + 8 G +
The hard disk 2.5GB + 1GB cache SSD with at least 5GB+ space
display 1024 x 768 1920 x 1080
The operating system Official release of 64-bit operating system:

1. Windows 8 +

2. The macOS 10.13 +

3. Linux GNOME, KDE, Unity desktop environment support

4. Preview system may not support well
The latest 64-bit Windows, MacOS, Linux systems

3. Installation work

Ubuntu 3.1

The installation

  1. Download the installation package and choose between the Ultimate or Community version according to your needs

  1. The installed package will be downloadedIdeaIU - 2020.1.1. Tar. GzMove to the directory where the software is normally stored and unzip it
The tar - ZXVF ideaIU - 2020.1.1. Tar. Gz

  1. Enter after decompressionbinDirectory, and then start the following command at the terminal:
./idea.sh

  1. Enter the Settings after initialization startup.

The first is the selection of UI theme, according to their own preferences to choose Light or Darcula mode;

Next, whether to create a launcher script and select your own script save directory

Then select the plug-in you want and disable the irrelevant plug-in, install it according to your own needs, if you don’t know how to choose, default can be

Select additional plug-in support, install as needed, unchecked by default, you can also install yourself later

uninstall

Linux under the uninstall only need to be the corresponding directory (that is, just decompressed by the directory) can be deleted.

3.2 Windows

The installation

The installation process is almost the same as that of Ubuntu, except that the installation package in Windows is an executable file. You just need to double-click to install it, and then select your own installation path. After installation, the Settings are the same as those in Ubuntu.

uninstall

Go to Windows Settings, then go to Applications, then search Idea and select Uninstall.

3.3 macOS

The installation

  1. First go to the official website to download the corresponding installation package;

  1. Then double-click on the download.dmgInstall the package, wait for validation and drag to itApplicationsCan;

  1. The installation is successful, and the main page opened is as shown in the figure below.

uninstall

Open the application in Access, then find Idea and drag it to the 🗑 paper basket. You can also right-click and move it to the paper basket.

4. Create a Java project

  1. In turn intoFile -> New -> Project, then select Java on the left, and configure the project JDK;

  1. After the next step, if the above option is checked, a project will be created from the template (usuallyHelloWorld), do not check is an empty item, see their own choice;

  1. Next, is to set the project name and project storage directory;

  1. Finally click Finish, and our normal Java project is created successfully.

  1. Project creation is successful, we are in the projectsrcRight-click on the directory to create a new Java class file and fill in the following code, a simple oneHelloWorldAnd we’re done;
/** * @author: cunyu * @version: 1.0 * @classname: HelloWorld * @date: 2020/10/23 11:14 * @description: HelloWorld */ public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!" ); }}

  1. When you finally run the result, you can see Hello World, just like the one we printed on the console!
Hello World!

5. To summarize

Today’s content has ended here, mainly introduced the difference between the different versions of IDEA, and then in different systems and uninstall work, finally is to give you a demonstration of how IDEA to write our Hello World! Procedures, more about the use of IDEA skills, I will take time to write a complete series, please look forward to it!