Springboot源码编译报错Unable to start the daemon process

官方网址:GitHub - spring-projects/spring-boot: Spring Boot

springboot版本:

                                                          Springboot源码编译报错Unable to start the daemon process_第1张图片

报错截图:

Springboot源码编译报错Unable to start the daemon process_第2张图片

 报错代码:

Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/7.6/userguide/gradle_daemon.html
Process command line: D:\devUtils\jdk_location\bin\java.exe --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2g -Dfile.encoding=UTF-8+ -Duser.country=CN -Duser.language=zh -Duser.variant -cp D:\.gradle\wrapper\dists\gradle-7.6-bin\9l9tetv7ltxvx3i8an4pb86ye\gradle-7.6\lib\gradle-launcher-7.6.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.6
Please read the following process output to find out more:
-----------------------
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED

-----------------------
Check the JVM arguments defined for the gradle process in:
 - gradle.properties in project root directory

官方表明:

Springboot源码编译报错Unable to start the daemon process_第3张图片

 JDK需要17:

 IDEA直接勾选最新版本JDK:

Springboot源码编译报错Unable to start the daemon process_第4张图片

 等待编译即可:

Springboot源码编译报错Unable to start the daemon process_第5张图片

完结。

你可能感兴趣的:(Bug记录,spring,boot,java,spring)