After ./studio.sh
in a terminal I get this error \"tools.jar is not in android studio classpath Please ensure JAVA_HOME
points to JDK rather than JRE\"
You must be sure that your jre and jdk works fine.
Run
$ sudo apt-get install default-jre
and then...
$ sudo apt-get install default-jdk
to make sure you have your javac path run
$ whereis javac
It should return something like this:
javac: /usr/bin/javac /usr/bin/X11/javac /usr/share/man/man1/javac.1.gz
If it does not work, you can try change the JAVA_HOME in /etc/enviroment file
Append JAVA_HOME="${/.../JVM_PATH}"
For example:
JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
and then reload this file:
$ source /etc/environment
Source: link