0

Showing the message

'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE.

how can i solve it

show me how install jdk properly

3 Answers 3

1

You can install JDK using following command :

sudo apt-get install openjdk-7-jdk

And then run

sudo update-alternatives --config java

command and select JDK instead of JRE. And then try to run

studio.sh

Hope it helps

1
  • 1
    Perhaps consider using: sudo apt-get install default-jdk instead of specifying version 7.
    – hackerb9
    May 13, 2016 at 6:19
0
  1. Ensure you've installed the java sdk, and not just the jre
  2. Ensure the JAVA_HOME environment path has the correct path after the sdk is installed
2
  • my friend but i do not know how to install them
    – saif rind
    Jan 5, 2015 at 16:18
  • There are some very good instructions here
    – snurfle
    Jan 5, 2015 at 16:26
0

I removed android studio, Umake and zip. Then I followed the instructions on this link How to completely uninstall Java?. Then installed java7 jdk form software center. Finally i re-installed android studio using umake. Now it works like a charm!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .