Download a JDK

Download or Associate a JDK With Your Project.

You can use the New Project Wizard to configure existing JDKs, or download new ones from different vendors.

If the necessary JDK is already defined in IntelliJ IDEA, select it from the JDK list.

If the JDK is installed on your computer, but not defined in the IDE, select the option Add JDK from the list and specify the path to the JDK home directory (for example, /Library/Java/JavaVirtualMachines/jdk-21.0.2.jdk).

If you don't have the necessary JDK on your computer, select Download JDK. In the Download JDK popup, specify the JDK vendor and version, change the installation path if required, and click Download.

Interested in JVM Development?

call to action image

Did you know you can turn on Java preview features in IntelliJ IDEA?

Learn More


Related Resources

Create an Editor Fold
Create an Editor Fold
Create an editor fold to hide parts of your class which can make it more readable.
Toggle Rendered View
Toggle Rendered View
Toggle rendered view for one or all Javadoc comments.
New Line
New Line
Start a new line below or above your current line with the correct indentation.