Getting "Error running 'build': No jdk for module
Solution: Intellij > Run > Edit Configurations > Run Configurations window > top Left > + button > Application > name your configuration > check the 4 fields:
- main class
- project directory
- classpath
- version of Java