IntelliJ Idea not able to detect Java JDK Path

I have openjdk 11.0.4.1 Installed In my SystemPicture showing my installation of Java from Terminal

I'm trying to do development in java using IntellijIDEA IDE of Jetbrains. Whenever I try to start a new JAVA project I see no SDK in SDK path.Image showing IntellijIdea indicating no SDK

So, naturally I tried to add my exisiting installation of JAVA to IntellijIdea.

  • I navigated to the folder /usr/lib/jvm.
  • Selected the folder java-11-openjdk-amd64 which was inside it.
  • After I press OK This error pops up telling me this is a JRE not a JDK.Popup showing my error

Please help me finding the correct location of JDK in my system..

3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like