How to set Java environment variables in Win7 system

  
            1. Right click on the “Computer” icon on the desktop, then select “Attributes” to open the System Properties window;
2. Click on the “Advanced System Settings” option on the left and click on the <;Environment variable” button;
3. In the environment variable editing interface, create a new variable named JAVA_HOME in the system variable, and set the value to C:\\Program Files\\Java\\jdk1.6.0_12;
4, system variables -> edit -> variable name: Path in front of the variable value plus: %JAVA_HOME% \\ bin;
5, system variables -> New -> variable name: CLASSPATH variable value:
.;%JAVA_HOME%\\lib;%JAVA_HOME%\\lib\\dt.jar;%JAVA_HOME%\\lib\\tools.jar; Finally test whether the environment variable is set successfully
The above is JAVA JDK The setting method of environment variables in win7 64-bit system. I hope to be helpful.
Note: For more exciting tutorials, please pay attention to the triple triple tutorial channel,

Copyright © Windows knowledge All Rights Reserved