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

Posted running_1997

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Springboot源码编译报错Unable to start the daemon process相关的知识,希望对你有一定的参考价值。

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

springboot版本:

                                                          

报错截图:

 报错代码:

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

官方表明:

 JDK需要17:

 IDEA直接勾选最新版本JDK:

 等待编译即可:

完结。

linux编译内核make menuconfig报错Unable to find the ncurses libraries解决办法

在 linux 编译内核时 make menuconfig 报了下面的错误。

*** Unable to find the ncurses libraries or the

*** required header files.

*** \'make menuconfig\' requires the ncurses libraries.

*** Install ncurses (ncurses-devel) and try again.

这是因为系统中缺少 ncurses-devel,安装一下就可以了

CentOS:

yum install -y ncurses-devel

Ubuntu:

sudo apt-get install ncurses

 

 

作者:耑新新,发布于  博客园

转载请注明出处,欢迎邮件交流:zhuanxinxin@aliyun.com

以上是关于Springboot源码编译报错Unable to start the daemon process的主要内容,如果未能解决你的问题,请参考以下文章

springboot报错Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFac

Springboot 启动报错,Unable to read meta-data for class

springboot整合gson打开swagger报错:Unable to render this definition。The provided definition does not specif

已解决:SpringBoot启动报错:Unable to start web server; nested exception is org.springframework.boot.web

错误记录编译 Linux 内核报错 ( Unable to find the ncurses package. )

linux编译内核make menuconfig报错Unable to find the ncurses libraries解决办法