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
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