首页 > 解决方案 > 启动进程'命令'C:\Program Files\AdoptOpenJDK\jdk-11.0.6.10-hotspot\bin\java.exe''

问题描述

通过 gradlew run在 Window 10 上运行,终端中显示以下错误:

> Task :storage:run FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':storage:run'.
> A problem occurred starting process 'command 'C:\Program Files\AdoptOpenJDK\jdk-11.0.6.10-hotspot\bin\java.exe''

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
2 actionable tasks: 1 executed, 1 up-to-date

欢迎任何建议

标签: javakotlingradleintellij-ideawindows-10

解决方案


不太确定刚刚发生了什么;但对我来说,在 spring-boot 项目中工作,将Run/Debug Configurations 中的Shorten 命令行选项从none更改为JAR manifest解决了这个问题。

缩短运行/调试配置中的命令行


推荐阅读