'Why am I getting error saying 'No JDK for Module' in java using InteliJ editor

Attached is an screenshot of the error message i getI am trying to write a simple program of Hello World and I am getting a error saying " error running 'main': No JDK for module 'untitled 104' "



Solution 1:[1]

file-> project structure-> sdk -> click on + icon and give jdk path here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Java Developer