Set up a project SDK
-
From the main menu, select File | Project Structure | Project Settings | Project .
-
If the necessary SDK is already defined in IntelliJ IDEA, select it from the Project SDK list.
If the SDK is installed on your computer, but not defined in the IDE, select Add SDK | 'SDK name' , and specify the path to the SDK home directory.
Only for JDKs: If you don't have the necessary JDK on your computer, select Add SDK | Download JDK . In the next dialog, specify the JDK vendor, version, change the installation path if required, and click Download.
Set up a module SDK
-
From the main menu, select File | Project Structure | Project Settings | Modules .
-
Select the module for which you want to set an SDK and click Dependencies.
-
If the necessary SDK is already defined in IntelliJ IDEA, select it from the Module SDK list.
If the SDK is installed on your computer, but not defined in the IDE, select Add SDK | 'SDK name' , and specify the path to the SDK home directory.
Only for JDKs: If you don't have the necessary JDK on your computer, select Add SDK | Download JDK . In the next dialog, specify the JDK vendor, version, change the installation path if required, and click Download.
请先登录再写评论。