Windows 7 64-bit, re-install Android SDK, The result encountered a problem:
When checking whether the system has installed JDK, the prompt is always: Java SE Development Kit (JDK) not found.
Error: Failed to find java version for 'C: \ windows \ system32 \ java.exe ': [2] the system cannot find the specified file
In fact, my JDK has been installed. This problem was not encountered before the Android SDK was installed.
If JDK is not installed, install JDK:
After installation, go to the next page.
Java is available in the C: \ windows \ system32 \ directory.
CMD enters the command line, and the input of java also has a normal response.
The error message is displayed in English. If you confirm that your Java SE Development Kit (JDK) has been installed, set the Environment System variable and specify JAVA_HOME.
Next, specify the environment variable to set the JAVA_HOME value.
Open the control panel and select system ".
Click "Advanced System settings". Under "System Properties", select "environment variables" on the "advanced" page ".
Find the JAVA_HOME variable in the system environment variable. If not, create a new one.
Set JAVA_HOME variable value to C: \ Program Files \ Java \ jdk1.7.0 _ 03
This value is the JDK installation path, which can be modified based on the installation path and version.
By the way, you can create or modify several variable values:
Set the CLASSPATH variable:
.; % JAVA_HOME % \ lib \ tools. jar; % JAVA_HOME % \ lib \ dt. jar
Add the PATH variable value to the end of the original value with a semicolon; then add C: \ Program Files \ Java \ jdk1.7.0 _ 03 \ bin
You can modify the Value Based on the installation path and version.
Note that the semicolon must be a semicolon of a half-width English character, and the path must not overwrite the previous value, but be added to the end.
Finally, all the confirmation will be OK.
By gongzibai