Fix: IntelliJ No SDK for New Project


If you are trying to create a new Java Project using IDEA IntelliJ IDE, you may see <NO SDK> for JDK option if you do not have any JDK available on your device.

No SDK Error IntelliJ JDK

The fix is simple, just under the JDK dropdown click on "Download JDK..."

Download JDK

Now select the Java Version you want to download:

Java versions:

20
19
18
17
16
15
14
13
12
11
10
9
1.8

Now select the Java Vendor:

Amazon Corretto 
Azul Zulu Community™ 
BellSoft Liberica JDK
Eclipse Temurin (AdoptOpenJDK HotSpot)
Oracle OpenJDK 
SAP SapMachine

Other Versions
GraalVM Community Edition
IBM Semeru (AdoptOpenJDK OpenJ9) 
JetBrains Runtime
IA+DrAinA DIntimA / ICCEl

And finally the location where you want to install the JDK

Eg: on macOS
~/Library/Java/JavaVirtualMachines/corretto-20.0.1
Download JDK IntelliJ
Installing Amazon Corretto 20.0.1

Once the installation is done, there should be no issues to create a new project.

-

Facing issues? Have Questions? Post them here! I am happy to answer!


Author Info:

Rakesh (He/Him) is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap