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 Local Development Environments Exploring Your IDE Creating Your First Project

I need help selecting a proper Home Directory for Intelli J version 15.0.3- getting error message.

Can someone advise on selecting the home directory for JDK for Intelli J version 15.0.3. I am getting an error message that it is not a proper home directory. Should I install a different version?

I can't email screenshot because I cannot figure out how to paste it on here so I will walk you thru what I selected. The path that I tried was *Create New Project, went to *New, selected *JDK, then I highlighted the folder IntelliJ IDEA 15.0.3 & hit *OK.

Error message: The selected directory is not a valid home for JDK.

Gavin Ralston
Gavin Ralston
28,770 Points

I'm assuming you have IntelliJ installed and you're just having trouble getting it to recognize the JDK you want to use. Sorry if I'm not understanding it right.

If you can, post screenshots of the error message and settings screen you get directed to, that might help.

In the meantime, if you're still having trouble, could you post the path you're trying to use for your JDK?

3 Answers

Gavin Ralston
Gavin Ralston
28,770 Points

Ok, so you don't want to point IntelliJ at its own directory, because it definitely will know where itself is. :)

What it's asking for is a path to the JDK you have installed.

On my Windows 10 machine, for instance, it's in C:Program Files/Java/jdk1.8.0_72 (or the same path but add /bin at the end, depending on what IntelliJ wants to see there) Give that a try, it might help.

If you're using another system, I highly recommend searching Stack Overflow or just googling "What is the path to the JDK" or something similar to get instructions that make more sense.

Thank you Gavin for your help. I got it. :-)

I can't email screenshot because I cannot figure out how to paste it on here so I will walk you thru what I selected. The path that I tried was *Create New Project, went to *New, selected *JDK, then I highlighted the folder IntelliJ IDEA 15.0.3 & hit *OK.

Error message: The selected directory is not a valid home for JDK.