How do I select JDK in IntelliJ?
Set up the JDK project Select File | Project Structure | Project Settings | Project from the main menu. Select the relevant JDK from the SDK list if it is already defined in IntelliJ IDEA. Close the dialogue and apply the changes.