When I try to create my first IDEA project, it shows No SDK, but JDK 17 is already installed on my system JDK in CMD.
I'm new, and I would like to use IntelliJ IDEA with the JDK I have installed.
Can someone help me?
When I try to create my first IDEA project, it shows No SDK, but JDK 17 is already installed on my system JDK in CMD.
I'm new, and I would like to use IntelliJ IDEA with the JDK I have installed.
Can someone help me?
On
You can add java SDK through project structure under IntelliJ IDEA settings. If you don't know how to add SDK. plz follow below instructions.
Open IntelliJ IDEA and go to the Welcome Screen or open an existing project.
Go to File > Project Structure (or use the shortcut Ctrl+Alt+Shift+S on Windows/Linux or Cmd+; on macOS).
In the Project Structure window, select the SDK (Software Development Kit) option from the left-hand side menu.
If you have an installed JDK on your system, you should see it listed under the "JDK home path" section. If not, click on the "+" (Plus) icon at the top to add a new JDK.
In the "Add New SDK" dialog box, select the option "Download JDK" or "Download JDK from..." if you don't have a JDK installed on your system.
Choose the desired Java version from the list and click "Download". IntelliJ IDEA will download and configure the Java SDK for you.
If you already have a JDK installed on your system, click the "..." (Ellipsis) button next to the JDK home path field and navigate to the directory where the JDK is installed.
Select the JDK directory and click "OK" to apply the changes.
Click "OK" to close the Project Structure window.
By default, installed JDKs are not shown in IntelliJ IDEA from the get-go, you need to import them first. To import and select an installed JDK in IntelliJ IDEA, you need to go to your main menu and select
File > Project Structure. Alternatively, you can use the shortcutCtrl + Alt + Shift + son Windows/Linux, while⌘ + Alt + Shift + son macOS.Once the Project Structure popup appears, select
projecton the left column, open the drop-down menu SDK and click onAdd JDK....At this point, browse to your JDK installation folder, select it and click on
Ok.Now you can select your installed JDK from the dropdown menu. Click on
Applyand thenOKto confirm your choice.See: