E.S.
E.S.

Reputation: 2841

IntelliJ - The selected directory is not a home for JDK

Similar to this question IntelliJ, "The selected directory is not a home for JDK", I am getting an error that my JDK directory suddenly is not valid.

Intellij JDK error

Even though my JDK directory looks fine to me and worked last time I loaded IntelliJ

My JDK directory

So I am selecting a valid JDK directory and yet still I get this error.

My Version of IntelliJ

What could cause this? What could fix this?

Upvotes: 8

Views: 8507

Answers (1)

Rao
Rao

Reputation: 21369

That is because of tool.jar and/or rt.jar file(s) being missed from JAVA_HOME/lib directory.

Reinstalling java can resolve this issue.

Upvotes: 6

Related Questions