mr.nothing mr.nothing - 3 months ago 21
Java Question

IntelliJ IDEA can't setup JDK

I'm trying to setup JDK in IntelliJ IDEA and whatever I do, or whatever JDK version I select, nothing happens. The following situation remains:
enter image description here

So I told IDEA what JDK it should use, but it still asks me to setup a JDK. Is this a bug or am I missing something? Can I apply any workaround to make everything work as usual?

ADDITION



The steps which I go through setting up the JDK:
situation before setting up:

enter image description here

the first step:

enter image description here

the second step:

enter image description here

the third step:

enter image description here

the situation after setting up JDK:
enter image description here

SDKs:

enter image description here

module settings:

enter image description here

Answer

File | Invalidate Caches is the first thing you should try in case of such issues.

Comments