When setting up Android Studio on Ubuntu you might get the following error message:
‘tools.jar’ is not in the Android Studio classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.
This is caused by having JAVA JRE installed as opposed to JAVA JDK.
The solution is simple:
sudo apt-get install openjdk-7-jdk