Home > Article > System Tutorial > Where is the location of configuring environment variables in win7?
Configuring environment variables in Win7 system is a common operation, which can help us manage the system more conveniently. PHP editor Zimo tells you that the location for configuring environment variables in Win7 is "Control Panel" -> "System and Security" -> "System" -> "Advanced System Settings" -> "Environment Variables". Here, you can add, edit, and delete system environment variables to facilitate your personalization and optimization of the system.
1. First install the corresponding software.
2. Then right-click the computer on the desktop, select Properties, then open it and click "Advanced System Settings"
3. Click "Environment Variables" here
4. Click New, enter the variable name JAVA_HOME, and the variable value is the jdk installation path
5. Locate and edit the Path variable, click on its end to add the leg variable %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;.
Never overwrite the original value. If you make a mistake, select the Negate button to undo the modification. To prevent accidents, you can temporarily back up the contents of the path variable in advance.
6. Create a new CLASSPATH variable and assign the value to ".%;JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar", before the first semicolon A "." is set.
7. Enter cmd and press Enter to enter the command line
8. Enter the "java -version" command in the terminal to view the Java version information. As shown in the figure, this means that we have successfully completed the installation and configuration process.
The above is the detailed content of Where is the location of configuring environment variables in win7?. For more information, please follow other related articles on the PHP Chinese website!