I am new to this community and have this problem:
I downloaded the IntelliJ IDEA IDE for Windows (x64) and i can not run a single line of code, there always comes the error message:
Cannot start compiler: the SDK is not specified for module "XY".
Specify the SDK at Project Structure dialog.
First make sure you have installed JDK on your system. Open the command line and type:
You should get something like:
java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
Then open your project in IntelliJ IDEA and go to Project Structure → Project tab (Ctrl+Alt+Shift+S on Windows OS) and add new JDK by providing its local path like