Install Android Sdk-the JDK not foundsystem does not find the specified file java.exe JDK has been installed. How can this problem be solved?

Source: Internet
Author: User
Tags java se

 

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
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.