IntelliJ IDEA JDK Not Found or Invalid

Share
Fixed in latest version Windows, macOS, Linux Updated November 13, 2026Based on 3 user reportsHow we research

Quick answer

'Project SDK is not defined' or 'Invalid JDK' means the project has no usable JDK. Point the project to a standalone JDK in Project Structure; the IDE's bundled runtime cannot develop Java apps.

Most likely fix: Select or download a JDK

How to fix it

Try these in order — the most common fix is first.

  1. 1. Select or download a JDK

    1. Open File | Project Structure | Project Settings | Project
    2. Pick a JDK from the SDK list, or choose Add JDK from disk, or Download JDK
    3. Click Apply
    Did this fix it?
  2. 2. Register a global SDK

    1. Open File | Project Structure | Platform Settings | SDKs
    2. Click Add and select the JDK home directory
    Did this fix it?
  3. 3. Check module SDKs

    1. Open Project Settings | Modules, select the module, then Dependencies
    2. Select Project SDK to inherit it
    Did this fix it?
  4. 4. Set the output path

    1. In Project Structure | Project set the Project compiler output folder if the compile error mentions it
    Did this fix it?

Symptoms

Banner saying Project SDK is not defined, run/compile buttons greyed out, or 'Cannot start compilation: the output path is not specified'.

Why it happens

  • No JDK installed
  • JDK moved, upgraded or deleted
  • Project opened on a new machine with a different path
  • Module using a different SDK than the project

This guide also covers

  • intellij jdk not found
  • project sdk is not defined intellij
  • intellij invalid jdk
  • intellij no jdk

Still not working?

If JetBrains IntelliJ keeps failing, you're not alone. See every JetBrains IntelliJ problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other JetBrains IntelliJ errors

All 12 JetBrains IntelliJ errors and fixes →