Project JDK is not defined [IntelliJ IDEA]

Error - Project JDK is not defined
Error - Project JDK is not defined

If you get the message - "Project JDK is not defined" on IntelliJ IDEA when trying to run your Java (Android) code then you have not set your JDK with the IDE,


Simply click on "Setup JDK" (you will see it at the right side of the message line) and select the JDK that are available - "JDK 8" in my case, once you select a JDK, indexing may take up some time and you should see a green check sign.

You should now be able to Build and Run Java code.

IntelliJ Project SDK

This is not an AI-generated article but is demonstrated by a human on an M1 Mac running IntelliJ IDE.

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap