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".
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 ./studio.sh
and I get the same error
My OS is Linux Mint 14
I solved the problem combining Jerome's and Jarod's answer:
sudo apt-get install openjdk-7-jdk
sudo nano /etc/environment
adding the following line:JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386
Also I just found https://stackoverflow.com/a/17827697/2533809 which seems to have a nice write-up, pretty much the same answer.
(I'm using Debian 7 Wheezy)
I have figured it out. You need to install openjdk-jdk. Opensjdk-jre is not enough. So in terminal all you need to do is write sudo apt-get install openjdk-7-jdk
then press yes. Open the android studio bin folder, double click on studio.sh, open in terminal, press enter, and then android studio should work.
Here's how I solved the same problem in my system: Thanks for @user2533809
$sudo apt-get install openjdk-7-jdk
$ls /usr/lib/jvm/java-1.7.0-openjdk-i386
ASSEMBLY_EXCEPTION bin docs include jre lib man THIRD_PARTY_README
$export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386
$./studio.sh
Environment :
kesavan@kesavan-Ideapad-Z460:bin$ uname -a
Linux kesavan-Ideapad-Z460 3.2.0-59-generic-pae #0trisquel1 SMP Sat Feb 22 03:55:17 UTC 2014 i686 i686 i386 GNU/Linux
kesavan@kesavan-Ideapad-Z460:bin$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With