Reputation: 106
This is NOT a duplicate Question. My problem is I want to change my JDK from 8 to another version (11 or 12) but this error appeared:
'selected directory is not a valid home for jdk'
My JDk address is: C:\Program Files\Java\jdk-11.0.2
IntelliJ version: 2017.2.5
I've searched about 3 hours, but the problem not fixed.
Upvotes: 0
Views: 173
Reputation: 44942
Java 11 is supported from IntelliJ 2018.2 forward. You have an outdated IntelliJ 2017.2.5 which most likely doesn't support this language version.
If you plan to code against Java 11 you need to update your IntelliJ.
Upvotes: 6