Can't use latest Java Version (JDK 21) in IntelliJ IDEA - Stack Overflow
IntelliJ IDEA 2024.3 EAP 5: Extended Support for Kotlin Features, Updates to Find in Files, Option to Disable Pre-Commit Checks, and More : java
the java RAM usage incident (looking at you IntelliJ)
Setting up Java JDK for Intellij from Flatpak
Videos
I hear so many rumors that Intellij is specifically for Java and android app development however, I also hear that people use Intellij for another programming languages. Is that true? Is it worth to just uninstall my pycharm and install components required for python development in Intellij?
I needed to update Intellij version to 2023.2.2 and change Language level (File -> Project structure -> project -> language level) to 21 (preview)
The new language level won't show up until Intellij is updated to the latest version.
To update Intellij, I needed to manually check for new update
Manually updating Intellij on Mac
Intellij IDEA | Check for Updates
Manually updating Intellij on Windows / Linux
File | Settings | Appearance & Behavior | System Settings | Updates
I followed a few options mentioned above, but nothing worked. The main problem was that the Gradle plugin was configured to use an older JDK version. I had to change it in the below settings to use JDK-21. After changing the JDK here, then everything worked fine.