Search code examples
javaspringintellij-idea

IntelliJ 2023.2.2 can not create new Spingboot Project with Java 11


Problem is no option to choose as Java 11 or Java 8 when i create new Spring Boot Project in IntelliJ Idea Ultimate 2023.2.2 and using trial version. They only give me option of Java 17 and 21 to choose. Did they end support for Java 11 and 8 or they limit my choice because i'm using trial ?

What is the reason of this or anyway to create new Spring Boot project with java 11. I have SDK of Java 11 and Java 17 already

Here you can see the photo: https://prnt.sc/027NhFh6LsTJ


Solution

  • IntelliJ IDEA's Spring Boot project creation functionality is based on what's provided by the underlying open-source Spring Initializr project. Requiring higher versions of Java is their call, it has nothing to do with the IDE.

    As a workaround, you can create the project in IDEA using higher versions of Java/Spring, then change the versions in the pom.xml manually and reload the dependencies to match your setup.

    For a more detailed explanation and instructions, see Alternative website for Spring Initializr for java 8? (start.spring.io now only allow Java 17+)