Home > Article > Technology peripherals > How to set environment variables in Win7 system? Detailed explanation of Win7 environment variable settings
win7 is Microsoft's most classic computer operating system. Although it has been updated to win11, many users still insist on using win7. Some friends want to know where to set the win7 environment variables. Let me teach you below.
1. First, find and right-click the mouse on the desktop and select [Computer] [Properties] one item to operate.
#2. Then in the [Properties] interface that appears, you need to click the [Advanced System Settings] option.
After this, a new page will pop up, the so-called [System Properties] interface. Find the [Environment Variables] button on this interface and click it to proceed to the next step
4. A button named [New] will appear. , in this interface, there are two variable types to choose from - [User] [System] variables. Just choose the appropriate variable type according to your personal needs.
PS: To facilitate subsequent adjustments and deletions, please choose to use user variables, even on your own computer
Step 5 , open the pop-up [New] window, enter [JAVA_HOME], and fill in the specific path [E:\ProgramFiles(x86)\Java\jdk1.8.0_60] (this is just an example path, please fill in your Java according to the actual situation Installation directory)
#6. Then create a new variable named [classpath] again. Its format and case do not matter. The specific path is [.;%JAVA_HOME%lib;%JAVA_HOME%libtools.jar;%JAVA_HOME%jrelibrt.jar;%JAVA_HOME%libdt.jar;] (please make sure there is a dot here, this step is very important) .
Next, if there is a variable name named path, please add the corresponding path after it. If it does not exist, you need to create a new variable named path and add the following path [%;JAVA_HOME%bin;%JAVA_HOME%jrebin;]
8. Finally, Please open the command prompt window (DOS interface), enter the command [java -version] and press the Enter key. If the version number can be displayed successfully, congratulations, this configuration has been successfully completed!
This is the specific method of setting win7 environment variables. Users in need only need to follow the above process. Carry out each step carefully to help you Easily complete environment setup.
The above is the detailed content of How to set environment variables in Win7 system? Detailed explanation of Win7 environment variable settings. For more information, please follow other related articles on the PHP Chinese website!