Configuring JDK environment variables in Windows 10 environment

1、 Environmental preparation

windows10

jdk-10

2、 Download and install the JDK

3、 Configure environment variables

1. Right click my computer > > Properties on the desktop, and click Advanced system settings on the pop-up page.

2. In the pop-up "system properties" window, click the "environment variable" button under the "advanced" tab.

3. In the pop-up "environment variable" window, click the "new" button below. In the pop-up "new system variable" window, create an environment variable named "java_home". The variable value is the installation path of Java. I am: D: \ project \ tool \ Java \ JDK_ 9.0. 1。 As shown in the figure.

4. Set the path environment variable, which already exists, so select path in the list, click the "Edit" button below, and add the following information to the pop-up window:% Java_ HOME%\bin;% JAVA_ Home% \ JRE \ bin, and then click the "confirm" button. As shown in the figure:

5. And Java_ Like home, create an environment variable named "classpath" with the value:% Java_ HOME%\lib\dt. jar;% JAVA_ HOME%\lib\tools. jar。 As shown in the figure:

6. After configuring the environment variables, you can enter CMD to check whether Java is installed correctly. The check command is java - version, as shown in the figure:

If the Java version and JVM version information can be correctly output, the Java installation is correct.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>