Installing androidstudio has a problem. After JDK is installed, no tools. jar and DT. Jar packages are available.

Source: Internet
Author: User

From: http://blog.sina.com.cn/s/blog_4fcc6ef20100vzo3.html

It took me a few hours to get JDK today. After installation, I found that there are no tools. jar and DT. Jar packages in JDK \ Lib. I found many solutions on the Internet, but they did not solve the problem. Finally, we can see an essential solution. The cause of this problem is that JDK and JRE are placed in the same directory during JDK installation, resulting in file overwrite, resulting in tools. jar and DT. jar package overwrite.

 

Solution:

My operating system is win7. During JDK installation, the second selection of the target folder is to select a directory different from the first installation directory.

For example, the first installation directory is c: \ JDK.

      The second installation directory is c: \ JRE.

After installation, you can view the tools. jar and DT. Jar packages under c: \ JDK \ Lib.

Then, set the environment variable to run the Java program normally.

 

Environment variable settings:

Java_home:C: \ JDK

Path:% SystemRoot % \ system32; % SystemRoot % \ system32 \ WBEM; % java_home % \ bin;

Classpath:.; % Java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. jar;

This interface is successful !!!

 

----- If it succeeds, you can install a development environment.

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.