Installing Android Studio appears ' Tools.jar ' seems to being not in Android studio classpath ... The workaround

Source: Internet
Author: User

Installing Android Studio appears ' Tools.jar ' seems to being not in Android studio classpath ... The workaroundoriginal July 31, 2015 10:45:36
    • Label:
    • Android Studio/
    • Installation issues
    • 5874
I. Problems that arise

The recent project to move the code to Android studio, so download the latest Android Studio installer, followed the online steps to install, the results of the first time after the launch, an error occurred:
' Tools.jar ' seems to is not in Android Studio classpath.
Ensure java_home points to JDK rather than JRE.


From the hint information can be seen, it seems to say that the missing Tools.jar file.
According to the prompt, I went to the JDK installation path under the Lib folder to see, the result is really not tool.jar, why this problem occurs?

Second, the cause of problems and solutions

After reading some articles on the Internet, I found out the cause of the problem.
Originally, in the installation of the JDK, the JRE was accidentally overwritten on the JDK (when the installation did not understand)!
To explain this problem, there will be two selection paths when the JDK is installed. The first is the installation path of the JDK, and the second is the installation path of the JRE. These two paths cannot be the same, otherwise the JRE will overwrite some of the contents of the JDK. For example, the JDK installation path is E:\JAVA\JDK, then the Jre can be E:\Java\Jre, so that this problem does not occur.
Following this idea, I re-installed the JDK again and started Android studio again and started successfully!

Third, expand

Expand on the JDK and JRE. In fact, the JDK is the core component of Java development and is used to compile the core components of the Java program, while the JRE is the Java operating environment.
In addition, some online said that the problem is because the JDK version is too high, I think it should not be the problem, I use JDK 1.8 is also able to run properly.

Installing Android Studio appears ' Tools.jar ' seems to being not in Android studio classpath ... The workaround

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.