Android Studio 'tools.jar' file is not present in classpath

前端 未结 11 1987
盖世英雄少女心
盖世英雄少女心 2020-12-07 13:49

I downloaded the current version of Android Studio (latest as of 4th July 2013) I also downloaded the JDK version 7u25.

However, it displays error after startup: Ple

相关标签:
11条回答
  • 2020-12-07 14:33

    read this: http://arwankhoiruddin.blogspot.co.il/2014/01/android-studio-in-ubuntu-problem.html

    in short: type at the terminal

    $ sudo update-alternatives --config java

    now you need to choose

    usr/lib/jvm/java-7-openjdk/jre/bin/java

    by pressing #3

    0 讨论(0)
  • 2020-12-07 14:33

    On Linux Mint 17 (or Ubuntu 14.04):

    sudo apt-get install openjdk-7-jdk
    

    Then change the JAVA_HOME env variable.

    export JAVA_HOME=JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
    
    0 讨论(0)
  • 2020-12-07 14:34

    On ubuntu I have tried all the methods that are described here but none worked.

    What I did in the end was to:

    • download JDK from oracle and extract the archive

    • edit android-studio/bin/studio.sh and add at the top

      export JAVA_HOME=/path/to/jdk

    • save the file and cd android-studio/bin and launch Android Studio: ./studio.sh

    0 讨论(0)
  • 2020-12-07 14:43

    Downloading the latest Android Studio resolve this issue / OSX /MAC

    0 讨论(0)
  • 2020-12-07 14:52

    On Fedora (and other RedHat derivatives, e.g. RHEL 7 and CentOS 7), it was the missing openjdk-devel package that was the issue for me. It's an easy fix and nothing to do with the JAVA_HOME path or the JRE.

    sudo yum install java-1.7.0-openjdk-devel.x86_64
    
    0 讨论(0)
提交回复
热议问题