Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 745
mr.nothing Avatar asked May 16 '12 05:05

mr.nothing


People also ask

Do I need to install JDK before IntelliJ?

Pre-release versions are not supported. You do not need to install Java to run IntelliJ IDEA because JetBrains Runtime is bundled with the IDE (based on JRE 11). However, to develop Java applications, a standalone JDK is required.

Where is JDK version in IntelliJ?

IntelliJ stores the JDK version used by the project within its Project Structure. There are two ways to locate this: Via menu navigation: Navigating to File -> Project Structure.


1 Answers

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

like image 99
CrazyCoder Avatar answered Sep 25 '22 06:09

CrazyCoder