JDK installation and configuration small problem solution

1. What is JDK?

JDK is a software development kit for the Java language, mainly used for Java applications on mobile devices and embedded devices. JDK is the core of the entire java development, it includes the JAVA runtime environment (JVM+Java system class library) and JAVA tools.

JDK is a development tool kit. After installing this, you can not only write java code on your own computer, but also run java code.
JRE is the runtime environment. With this installed, only java code can be run on the computer. This ensures the cross-platform nature of java.
The connection between the two: JDK includes JRE, which means that if JDK is installed, there is no need to install JRE.

2. JDK download address: JDK official download

3. JDK installation and configuration method:

Since there are many explanations on the Internet, only a few links are posted here, and the test is successful.

1. Baidu Experience

2. Install JDK in win10 environment

Here is a problem I encountered:

In the tutorial linked above, when configuring environment variables, double quotes (as follows) will appear after the input path, resulting in invalid configuration:

'' C:\ProgramData\Java\jdk-10\bin; C:\ProgramData\Oracle\Java\javapath '' ------ this is wrong

C:\ProgramData\Java\jdk-10\bin; C:\ProgramData\Oracle\Java\javapath ------ this is correct

After several attempts, I finally found the reason. Due to the version of the win10 system, the situation is different when opening the "Edit Environment Variables" dialog box. as the picture shows:




Summary: If you encounter problems, solve them!



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325806877&siteId=291194637