Android Studio error after ./studio.sh

前端 未结 12 1183
名媛妹妹
名媛妹妹 2021-01-30 10:49

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\"

12条回答
  •  时光说笑
    2021-01-30 11:22

    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$ 
    

提交回复
热议问题