Home > Common Problem > How to configure detailed jdk environment variable configuration in win10

How to configure detailed jdk environment variable configuration in win10

PHPz
Release: 2023-06-29 20:09:18
forward
7870 people have browsed it

How to configure detailed jdk environment variable configuration in win10? JDK environment variable configuration is the first step to learn Java. When developing Java programs, you definitely need to reference classes that have been written by others. When we reference other people's classes, we need to let the interpreter know. Where to reference this class. Let’s take a look at the detailed installation and configuration methods under win10 system.

How to configure detailed jdk environment variable configuration in win10

win10 detailed jdk environment variable configuration steps

1. Install JDK. Select the installation directory. Two installation prompts will appear during the installation process.

The first time is to install jdk, and the second time is to install jre. It is recommended to install both in different folders within the same java folder.

(They cannot both be installed in the root directory of the java folder. An error will occur if jdk and jre are installed in the same folder)

How to configure detailed jdk environment variable configuration in win10

2. Configure environment variables : Right-click My Computer&-->"Properties"-->"Advanced System Settings"-->"Advanced"-->"Environment Variables"

1. Create a new one in System Variables "JAVA_HOME" variable,

The variable value is: C:Program FilesJavajdk1.8.0_60 (fill in according to your own jdk installation path)

How to configure detailed jdk environment variable configuration in win10

2. In Create a new "classpath" variable in the system variables. The variable value is: .;%JAVA_HOME%lib;%JAVA_HOME%lib ools.jar (note the dot at the front)

3. Find the path variable (it already exists, no need to create a new one) ) Add variable values: %JAVA_HOME% in;%JAVA_HOME%jre in

Note that the variable values ​​are separated by ";". If the original Path variable value does not have a semicolon at the end, enter the semicolon first and then enter it again.

If your system is Windows 10, it is relatively more convenient, and you don’t have to worry about this ";".

3. Windows R&->Enter &md&->Enter, enter java -version (remember there is a space in the middle),

If the jdk version information is displayed, the environment variable configuration is successful .

How to configure detailed jdk environment variable configuration in win10

The above is the entire content of [How to configure win10 detailed jdk environment variable configuration - win10 detailed jdk environment variable configuration steps], more exciting tutorials are on this site!

The above is the detailed content of How to configure detailed jdk environment variable configuration in win10. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:chromezj.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template