Bryan Villafañe Bryan Villafañe - 6 months ago 23
Linux Question

Android Studio error after ./


in a terminal I get this error "tools.jar is not in android studio classpath Please ensure
points to JDK rather than JRE".

I Google it and this is what everybody says:
"you need to set your environment variable to JDK path instead of JRE"

I try this two commands

export PATH=${JDK_HOME}:/etc/java-7-openjdk

export PATH=${JAVA_HOME}:/etc/java-7-openjdk

And execute again
and I get the same error

My OS is
Linux Mint 14


I solved the problem combining Jerome's and Jarod's answer:

  1. Install JDK -- sudo apt-get install openjdk-7-jdk
  2. Environment Variable -- sudo nano /etc/environment adding the following line:
  3. JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386
  4. Reboot, and Android Studio starts up. (I had added also a link to to the main menu).

Also I just found which seems to have a nice write-up, pretty much the same answer.

(I'm using Debian 7 Wheezy)