Reputation: 2841
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.
Even though my JDK directory looks fine to me and worked last time I loaded IntelliJ
So I am selecting a valid JDK directory and yet still I get this error.
What could cause this? What could fix this?
Upvotes: 8
Views: 8507
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