Intellij IDEA is not able to detect jdk what to do?

I have recently moved from windows to ubuntu-22.04 and it is a bit confusing.
I have installed intellij IDEA, after installing java and jdk, but still intellij is not able to detect the jdk version installed in my pc.intellij not detecting jdk
The path of installed java is also set but still it is not working in intellij.Path of installed java. what should I do, I am not able to use intellij IDEA for java programming.

I have tried setting up the path in .bashrc file but still there is no change in intellij IDEA.
.bashrc file.

>Solution :

From the screen of your first screenshot, Click "Download JDK", then select the version you need.

What you might already have installed is the Java Runtime

Leave a Reply