Configuration of the JDK environment variable:
Right-click computer or My Computer , select Properties -- advanced or Advanced system settings (for example, Figure 1below)-- environment variable "(for example, Figure 2below), for example:
Figure 1
Figure 2
Stand-alone "environment variables". The interface appears for example with 3.
Figure 3
Then, at System variables , select new (the red Mark ). Appear for example with 4 interface,
Figure 4
The following is a formal configuration section:
(1) Enter "java_home" at " variable name " and enter the JDK installation folder in the " Variable Value " (The JRE folder under the installation JDK folder, Bin folder and Lib folder, etc.).
(2) Create a new variable name, classpath, whose variable value is:
.; %java_home%\lib\rt.jar;%java_home%\lib\tools.jar
(3) Double-click the Path variable to join at the top or last:
%java_home%\bin;
Test whether the JDK was successfully installed:
Select " start " and " execute ", or press the combo key "Win + R" directly and enter "cmd" in the Command box. Enter the DOS interface (black box) and type "java-version" at the command line
A successful installation of the JDK appears as a warning message.
Configuration of the SDK environment variables:
(1) " new " in " system variable ", variable named "sdk_home", " Variable Value " Enter SDK installation folder (Tools folder under SDK installation folder , Extras folder and Platfroms folder, etc.);
(2) Add the value of the Path variable:
%sdk_home%\tools;
Test SDK installed successfully:
Enter "android-h" in the DOS interface command line,
A message appears indicating that the SDK was successfully installed.
Environment variables for configuring JDK and SDK in Android