启动进程'命令'C:\Program Files\AdoptOpenJDK\jdk-11.0.6.10-hotspot\bin\java.exe''

ikb*_*mad 1 java intellij-idea gradle kotlin windows-10

通过 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
Run Code Online (Sandbox Code Playgroud)

任何建议都欢迎

sta*_*rkm 5

不太确定刚刚发生了什么;但对我来说,在 spring-boot 项目中工作,将运行/调试配置中的Shorten 命令行选项从none更改为JAR 清单解决了问题。

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