無法運(yùn)行程序 CreateProcess error=206,文件名或擴(kuò)展名太長
小唯快跑啊
2023-03-09 17:07:12
在 pom 文件中使用 jvmarguments 時出現(xiàn)標(biāo)題錯誤。我正在使用帶有以下插件的 mvnw 命令來啟用調(diào)試。如果我刪除 jvm 參數(shù),它就可以工作。但是我想使用 mvnw 命令啟用遠(yuǎn)程調(diào)試代碼片段:<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> <configuration> <mainClass>${start-class}</mainClass> <executable>true</executable> <fork>true</fork> <jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments> </configuration></plugin>錯誤:*[ERROR] 無法執(zhí)行目標(biāo) org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:run (default-cli) on project dxcgateway: Could not exec java: Cannot run program "C:\ Program Files\Java\jdk1.8.0_202\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long -> 【求助1】org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute目標(biāo)org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:在項目dxcg ateway上運(yùn)行(默認(rèn)cli):無法執(zhí)行javaCaused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_202\jre\bin\java.exe": CreateProcess error=206, 文件名或擴(kuò)展名太長lang.ProcessBuilder.start (ProcessBuilder.java:1048) 在 org.springframework.boot.loader.tools.RunProcess.run (RunProcess.java:77)Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_202\jre\bin\java.exe": CreateProcess error=206, 文件名或擴(kuò)展名太長lang.ProcessBuilder.start (ProcessBuilder.java:1048) 在 org.springframework.boot.loader.tools.RunProcess.run (RunProcess.java:77)*
查看完整描述