1

I cannot add jdk11 and jdk13 in intelliJ as SDK. I am able to add jdk-18.0_22 only.

Why is that so?

enter image description here

Danyal Sandeelo
  • 12,196
  • 10
  • 47
  • 78

2 Answers2

4

Based on the comment from @MarsAtomic, I would guess that your version of Intellij (14.1.4) is too old to use the new versions of java.

14.1.* was last released on May 11, 2016.

JDK 11 reached General Availability on 25 September 2018.

hooknc
  • 4,854
  • 5
  • 31
  • 60
  • 6
    The biggest obstacle in recognizing newer JDKs, is the switch to the module system introduced in JDK 9, which is supported since IntelliJ IDEA 2016.3, but substantially improved with IntelliJ IDEA 2017.1. So it’s indeed reasonable to assume that any older IntelliJ IDEA version will have problems with any version newer than JDK 9. – Holger Nov 01 '19 at 15:48
4

The implication of Java 11 in IntelliJ IDEA 2018.2 is that you need to use Intellij IDEA 2018.2 or later to work with Java 11.

I expect that one reason that your older Intellij install is not recognizing your Java 11 or Java 13 install is that the JDK classes are packaged differently starting with Java 9.

For support of Java 13 preview features you will need IntelliJ IDEA 2019.2

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216