N/APosted on - 02/19/2014
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.
‘tools.jar’ is not in Android Studio classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.
tools.jar is not in Android Studio classpath
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:
Finally, reboot and start the Android Studio. Don't forget to add a link to the studio.sh under the main menu.