Péter Veres
Péter Veres

Reputation: 1163

JDKs installed with SDKMAN are not selectable in the IntelliJ IDE

What steps will reproduce the issue?

What is the expected result?

The installed JDK should be selectable

What happens instead?

The folders containing the JDKs are not displayed in the browser (image #3) I need to switch back to JDK 8 and currently I can only use the IDEs built in JDK11 (cannot select either the 11 or 8 JDK versions installed through SDKMAN)

Environment

OS: Linux Mint IntelliJ IDEA 2019.3 (Community Edition) Build #IC-193.5233.102, built on November 28, 2019

Screenshots and log can be found in the Jetbrains issue tracker: https://youtrack.jetbrains.com/issue/IDEA-228394

Upvotes: 34

Views: 19854

Answers (3)

Nilotpal
Nilotpal

Reputation: 3578

For me both of of the below helped to resolved.

  1. Invalidate cache (File > Invalidate Caches / Restart)
  2. Update the IntelliJ version to 2021.x (This would solve much of ur problem!)

Upvotes: 6

Tarnished-Coder
Tarnished-Coder

Reputation: 378

If Planning to use Java 14 (Preview - Record, patterns, text blocks), make to have switched to IntelliJ 2020.1 update. then, you can press (cmd + ;) for mac to open project/module settings and select Java 14 JDK and language level Java 14 (Preview - Record, patterns, text blocks)

Upvotes: 0

Karol Dowbecki
Karol Dowbecki

Reputation: 44932

Use File > Invalidate Caches / Restart option which should invalidate local caches. Hopefully it's a glitch in the dialog cache.

Upvotes: 16

Related Questions