If for some random reasons, after a JDK update from SDKman, all kotlin projects fail to compile/run in Intellij, double check that the JDK has the correct path in ~/.config/JetBrains/IntelliJIdeaXXXX.x/options/jdk.table.xml
If you use settings-repository plugin, the file to edit might be ~/.config/JetBrains/IntelliJIdea2025.2/settingsRepository/repository/jdk.table.xml
- shutdown intellij
- Edit this file with the correct path
- Enjoy