About the installation of JDK and the configuration of environment variables;
First, download the JDK (to Baidu to find the JDK version you need), and then install it (the installation process is basically the next step until the installation is complete) and remember the installation path of the JDK, after the installation in the Command window to enter the command java-version can appear version information proof that the installation is correct.
Second, start configuring environment variables below:
1) Right-click "My Computer"---"Properties"-----"advanced"---"Environment variables";
2) Select "New system Variable"--pop up the "New System Variable" dialog box, enter "Java_home" in the "Variable name" text box, in the "Variable Value" TextBox Enter the installation path for the JDK (for example: C:\Program Files (x86) \java\jdk1.7.0_40\bin;), click the OK button;
3) View the path variable in the system variables options area, if it does not exist, create a new variable path, otherwise select the variable, click Edit The start position of the Variable Value text box is added "%java_home%\bin;%java_home%\jre\bin;" or
4) View the classpath variable in the system Variables options area, or create a new variable classpath if it does not exist, or select the variable, Click Edit button to add "%java_home%\lib;%java_home%\lib\tools.jar;" At the beginning of the Variable Value text box.
5) Now test whether the environment variable is configured successfully or not. Enter "JAVAC" in the DOS command line window and the output Help information is configured correctly.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
This article is from the "flyfish" blog, make sure to keep this source http://9381188.blog.51cto.com/9371188/1706236
JDK Configuration for Java