我有一个项目建设成功,但未能启动,所以我在运行--debug
时询问了详细信息
$ ./gradlew bootRun --debug
...
20:40:40.568 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING
20:40:40.568 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: command 'D:\prefix\Java\jdk1.8.0_211\bin\java.exe'.
20:40:40.569 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
20:40:40.569 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'D:\prefix\Java\jdk1.8.0_211\bin\java.exe'' finished with exit value -1 (state: FAILED)
...
似乎command 'java'
出现问题,所以我手动运行命令
$ command 'D:\prefix\Java\jdk1.8.0_211\bin\java.exe'
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
The default VM is server.
这个看起来不错,我不确定现在是什么问题...在此先感谢