Sunday, December 31, 2017

"Error running 'build': No jdk for module and how I resolved this issue

Problem:  When I hit the Run button, I got the following error in my console:  
      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