tools.jar is not in Android Studio classpath

Asked By 40 points N/A Posted on -
qa-featured

Hello there,

Recently I have download and installed the latest version in Android Studio. Now I am getting an odd error message after I start the application. Do I need to update anything else in the computer to avoid this error? I do not have any idea please help me to solve this error. Thank a lot.

Error.

‘tools.jar’ is not in Android Studio classpath.

Please ensure JAVA_HOME points to JDK rather than JRE.

SHARE
Answered By 1065 points N/A #188185

tools.jar is not in Android Studio classpath

qa-featured

First of all, ensure that Java JDK is installed properly:

Dpkg –list | grep -i jdk

If its not properly installed, run the following:

Sudo apt-get install openjdk-7-jdk

And then the Environment variable:

Sudo nano /etc/environment

and add the code below:

JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386

Finally, reboot and start the Android Studio. Don't forget to add a link to the studio.sh under the main menu.

 

Related Questions