tools.jar seems to be not in Android Studio classpath on Windows 8
I had this same problem and was able to fix it after wasting about 3 hours:
Just copy tools.jar from %JAVA_HOME%\lib
to (Android Studio Root)\lib
check your JAVA_HOME value!
it should be like this
E:\Program Files\Java\jdk1.8.0_25\jre
First locate in your PC the route of your JDK (for instance: C:\Program Files\Java\jdk1.7.0_45
)
then change the JAVA_HOME
variable as follows:
- Right-click the My Computer icon on your desktop and select Properties
- Click the Advanced tab
- Click the Environment Variables button
- Under System Variables, click New
- Enter the variable name as
JAVA_HOME
- Enter the variable value as the installation path for the Java Development Kit