0

I want to learn to make Java Android applications in Android Studio, I downloaded both the Java JDK and Android studio on an external drive (D:). I'm getting this error on start-up:

tools.jar seems to be not in Studio classpath.

Please ensure JAVA_HOME points to JDK rather than JRE.

So I already searched Stackoverflow for the same error, but my Java folder seems to be a little bit different (it makes me wonder if I downloaded the correct JDK). Because the advice was to either move tools.jar or change the value of JAVA_HOME. None of those are an option because i can't seem to find the JDK in the Java folder. (D:\Java) Did I install the wrong JDK? Thanks in advance.

asked Nov 14, 2015 at 22:22
3
  • Do you have the JAVA_HOME variable set correctly? Commented Nov 14, 2015 at 22:26
  • have you tried this stackoverflow.com/a/16574700? Commented Nov 14, 2015 at 22:27
  • C:\Program Files\Java\jdk1.7.0_21 doesnt exist on my computer. D:\Java\jdk1.7.0_21 neither.. Commented Nov 14, 2015 at 22:31

1 Answer 1

3

1) Download JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2) Android Studio -> File -> Project structure -> JDK location. Point at where you have installed it.

answered Nov 14, 2015 at 22:36
Sign up to request clarification or add additional context in comments.

3 Comments

Oh i downloaded jdk7 for some reason.. Thanks i'll let you know if it worked.
7 should work too, you just need to find it on your disk :)
It seems to work now! Thanks alot for the link Reizen :)

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.