IDEA suddenly stopped detecting the JDK

Answered

I've been working on Java projects on IDEA for a while. Yesterday it suddenly stopped detecting the installed JDK.

The errors show up like so: https://i.imgur.com/UEXb1fM.jpg

As you can see, the project settings are set properly and I have not changed anything at all: https://i.imgur.com/elTH9QT.jpg

As a final comment, I re-installed Netbeans to test if this was a problem with IDEA or the actual JDK (even though there were no changes to it) and it works fine there.

0
2 comments

Remove JDK configuration in IntelliJ IDEA and add it again.

Also try File | Invalidate Caches | Invalidate and Restart.

1
Avatar
Permanently deleted user

The 'Invalidate Caches' option worked. Thanks.

0

Please sign in to leave a comment.