Cannot add jdk11 and jdk13 in SDK in IntelliJ - java

ⅰ亾dé卋堺 提交于 2020-01-23 17:11:52

问题


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

Why is that so?


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/58661522/cannot-add-jdk11-and-jdk13-in-sdk-in-intellij-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!