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,

Solution:

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.




Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.