IntelliJ - the selected directory is not home to the JDK

Like this IntelliJ question , "The selected directory is not home to the JDK," a message appears stating that my JDK directory is unexpectedly invalid.

Intellij JDK Error

Although my JDK directory is great for me and worked the last time, I downloaded IntelliJ

My JDK Directory

So, I select a valid JDK directory, but still get this error.

My version of IntelliJ

What could be the reason for this? What can be fixed?

+7
java intellij-idea java-7 ide intellij-15
source share
1 answer

This is due to the lack of tool.jar and / or rt.jar from the JAVA_HOME/lib directory.

Reinstalling java may fix this problem.

+5
source share

All Articles