无法运行程序“ AdoptOpenJDK \ jdk-8.0.232.09-hotspot \ jre \ bin \ java.exe”:CreateProcess错误= 206,文件名或扩展名太长

我正在使用JHipster在Spring中生成应用程序,当我使用maven进行构建时,会发生以下有关环境maven的问题:

 ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  12.076 s
  [INFO] Finished at: 2019-11-20T14:40:39+07:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.9.RELEASE:run 
  (default-cli) on project app-1: Could not exec java: Cannot run program "C:\Program Files\AdoptOpenJDK\jdk-8.0.232.09-hotspot\jre\bin\java.exe" (in directory "D:\ESR\JHipster\app1"): CreateProcess error=206,The filename or extension is too long -> [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors,re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions,please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

我正在使用jdk-8.0.232.09-hotspot

如何解决问题

chenxcl12345 回答:无法运行程序“ AdoptOpenJDK \ jdk-8.0.232.09-hotspot \ jre \ bin \ java.exe”:CreateProcess错误= 206,文件名或扩展名太长

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3067893.html

大家都在问