Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

How do I get Android Studio Installation to find valid JDK (Java Development Kit) on my pc?

Installed the Java Environment after the Android Studio Install window asked me to browse to the 'JDK' where I installed it from the linked file to Java site (archive downloads), but it tells me it can't find it.

I browsed to Java.exe/bin/ , like it said after an error, and it still can't find it.

Are there other ways around this?

3 Answers

On an Windows PC it should be installed in C:\Program Files\Java\jdk[JDK version] or C:\Program Files (x86)\Java\jdk[JDK version] if you installed the 32-bit version.

Well this time I installed the 8u77 JDK from Java site, and changed the install dir. to jdk[version#], instead of the of the folder name that it was going to name it... jre[version#]. And also, I installed the JDK 8u77 in the save directory as my previous install of Java.

Now the software didn't ask for the path. It just installed Android Studio.

Thanks for your help Seth.

I am having trouble installing JDK to complete Andriod Studio Installation jdk-7u79-windows-x64.exe