Add JDK for your project

You can add JDK of the required version and vendor right from the IDE. Go to File | Project Structure | Project, expand the SDK list, and select Download JDK. This option is also available for new projects in the New Project wizard (File | New | Project).

Adding JDK