gogoWebsite

IntelliJ IDEA installation tutorial (IDEA2020.1 as an example)

Updated to 6 months ago

IDEA Installation Tutorial Catalog

I. Complete uninstallation of JDK (optional)

II. JDK installation

III. IDEA Installation

IV. Extension of IDEA

V. Code testing

6、Error:Cannot determine path to '' library for 17 (D:\jdk-17.0.1)Solutions for Error Reporting

VII. Description


Write in the front:JDK version to match IDEA versionOtherwise it will report an error ow (ie: as shown in section 6)! Since I had JDK before, I uninstalled JDK17 first for a better demo.If you have a JDK please check your JDK version and proceed to the second step (The IDEA version selected for this post is 2020.1 (the extended tutorial does not apply to 2022 and later)If you want to uninstall the JDK completely, please refer to the first step. IDEA is divided into flagship version (ULtimate) and community version (Community). Community is a free version, ULtimate version can be used free of charge through educational certification. This article is installed by the ULtimate version, this article is for learning purposes only.

IDEA's official website for:IntelliJ IDEA – the Leading Java and Kotlin IDE ()

I. Complete uninstallation of JDK (optional)

Step one:Find Java(TM) SE Development Kit 17.0.1(64-bit) in the Control Panel, right-click ->Uninstall

Step two :Press Win+R on your keyboard and type "regedit" to open the registry editor.

Find the following directory:

HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft 

As pictured:

Delete the JavaSoft folder and all its subdirectories.

Step three: Delete system environment variables
Right-click Computer → Properties → Advanced System Settings → Advanced → Environment Variables

1> Find System Variables → Delete the JAVA_HOME variable and the CLASSPATH variable, that is:


2> Edit the System Path variable to remove %JAVA_HOME%\bin; and %JAVA_HOME%\jre\bin; from it, that is:

Step four:Delete the , and files in the Windows\System32 and Windows\SysWOW64 folders on the C drive (Ignore if not found

Step five:In cmd, type Java, as shown in the picture, that is, the uninstallation is successful:

II. JDK installation

1) JDK17 download (IDEA2020 please download jdk11):

Official website (this does not require registration, you can directly download the latest version):Java Downloads | Oracle

To install, double-click the downloaded exe.

Customize the installation path:

Wait for the automatic installation to complete:

Configure system environment variables:See the JDK11 section for details(Only one diagram is listed here, the rest is the same as the JDK11 configuration)

Check for successful installation and version information:

2) JDK11 download: 

Channel One:Official website download (you have to register, so you can choose channel 2) Official website link:Java Downloads | Oracle

JDK11 passthrough address:Java Downloads | Oracle

Click Download jdk-11.0.13_windows-x64_bin.exe and agree to the agreement login to download:

Channel Two:Here is a Huawei jdk source image address:Index of java-local/jdk

jdk11.0.1 download address:Index of java-local/jdk/11.0.1+13

Channel Three:

Public No.: Rando's Little Warehouse Send: jdk to extract.

3) Installation: double-click, select the installation path

4) Configure environment variables

Step one:Right-click Computer → Properties → Advanced System Settings → Advanced → Environment Variables

Step two:New -> variable name "JAVA_HOME", variable value "D:\jdk-11.01" (here should be their own JDK installation path)

Step three:New -> variable name "CLASSPATH", variable value: (Note: the bolded part should be copied, do not copy less, the meaning of the first two punctuation for the current path)

".;%JAVA_HOME%\lib;%JAVA_HOME%\lib\;%JAVA_HOME%\lib\"i.e. reproduction:

.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\;%JAVA_HOME%\lib\

Step four:Edit system environment variables -> double-click "Path", click "New", enter "%JAVA_HOME%\bin", click "OK", then click "New" and enter "%JAVA_HOME%\jre\bin", click OK.

Attachment:Explanations related to environmental variables (Source:JDK's most detailed installation tutorial - Xiaolingzi Ya - Blog Park):

Variable name: JAVA_HOME
Variable value: D:\jdk-11.01
Purpose: Define a variable for use elsewhere
Variable name: Path
Variable values: %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
Purpose: allow the system to recognize java, javac, javap and other commands in any path
Variable name: CLASSPATH
Variable value: . ;%JAVA_HOME%\lib\;%JAVA_HOME%\lib\
Purpose: tell jvm to use or execute the class on what path, easy to JVM load class file, . ; means the current path, and for the class library path

5) Check whether the installation is successful and the installed version

Win+R in cmd:

java -version

III. IDEA Installation

Step one:Download

IDEA download official website:http:// /idea/

Since newer versions may be unstable, select Other versions here:

Here I chose Windows 2020.1 version

Click to download:

Of course, the ones I've downloaded are available on the netbook (Suggest you go to the official website to download(Faster)

Public: Rando's Little Warehouse Send: IDEA2020 to pick it up.

Step two: Installation

Double-click the downloaded exe installer to select the installation path

Check 64-bit (choose according to your own computer, don't make a mistake, or you won't be able to start properly afterwards)

Next>

Next> check Run IntelliJ IDEA

Finish, consent agreement

Startup Interface:

Just click on the bottom left corner here to skip:

Select Evaluate for free, try it for 30 days, click Evaluate (don't worry, there's an extended tutorial later)

Start creating a project

If you did not do the second step to download the JDK, then here is <No SDK>, you can choose Download JDK (here the default download of the latest version, so if you IDEA version is not new enough, it will report the error in section VI)

Here I did the second step so, just drop down and select the JDK you downloaded:

Create project (can be skipped)

At this point, the installation of IDEA and the creation of JAVA project is complete, if you just short-term use, you can skip to step five.

IV. Extension of IDEA

1. Download jetbrains-agent:

Support genuine software, if you are a student you can choose to use the school's mailbox for educational authentication (I use the educational authentication, it is very convenient), you can also install the Community version (enough for you to use).

The method of educational accreditation is as follows:IDEAEducational Accreditation Methodology andCertificate used to sign the license is not signedby JetBrains root certificateenhancement-CSDNblog (loanword)

If you need the jetbrains-agent download link for this article you can get it from the
Public No.: Randuo's Small Warehouse
Reply keyword: jetbrains-agent get.
(If you are a high version of the advice you find resources on the Internet, a lot of drops.
This is for the 2020 version of the ow, before the storage, a little long ago)

2. Move the jetbrains-agent zip file into the current interface.

3, in the pop-up window, select Restart, reboot

4. Select Install for IDEA:

5. Choice of Yes (Y)

6. View information:

Cancel automatic updates: File->Settings->Updates->unchecked

V. Code testing

1, create a new Java Class, class name hello:

2、Test code:

public class hello {
    public static void main(String[] args)
    {
        ("hello world!");
    }
}

3. Test results:

6、Error:Cannot determine path to '' library for 17 (D:\jdk-17.0.1)Solutions for Error Reporting

Reason for reporting error:JDK and IntelliJ IDEA version mismatch

Program I:Reduce the version of the JDK so that it is recognized by the current IntelliJ IDEA (IDEA for 2020.1 requires JDK 14 and below)

Program II:Increase the version of IntelliJ IDEA (version 2021 of IDEA is required if JDK17 is installed)

VII. Description

1, the tutorials in this document have been personally tried by the blogger himself, if you have any questions you can leave a message or private letter to the blogger.

2、If you feel that this article is helpful to you, pleaseone-touch tripleOw! We're learning together! Progressing together!