Jhipster 5.7微服务无法在Windows上启动,并显示错误CreateProcess错误= 206,文件名或扩展名太长 [英] Jhipster 5.7 microservice failed to start on windows with error CreateProcess error=206, The filename or extension is too long

查看:193
本文介绍了Jhipster 5.7微服务无法在Windows上启动,并显示错误CreateProcess错误= 206,文件名或扩展名太长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jhipster 5.7微服务无法在Windows上启动,并显示错误CreateProcess error = 206,文件名或扩展名太长

Jhipster 5.7 microservice failed to start on windows with error CreateProcess error=206, The filename or extension is too long

我创建了一个Jhipster微服务.当我尝试启动时,出现错误CreateProcess error = 206,文件名或扩展名太长. 所有其他问题都建议减少类路径或使用IntelliJ.他们都没有解释如何做.这是我尝试的几件事:

I have created a Jhipster micro service. when I am trying to start, I get error CreateProcess error=206, The filename or extension is too long. All other questions are suggesting to reduce classpath or usning IntelliJ. None of them explained how. Here are few things I have trying:

  1. 从类路径中删除不必要的jar:

  1. Remove Unnecessary jar from classpath:

  • 我有新鲜的Jhipsterap.我不知道可以移除哪个罐子 不破坏它.
  • I have fresh Jhipsterap. I don't know which jar I can remove without breaking it.

使用IntelliJ

Use IntelliJ

  • 我正在从命令行运行服务.

将您的项目或Maven存储库移至"c:"驱动器以缩短路径.

Move your project or maven repo to "c:" drive to make path short.

  • 我不能.仓库很大,正在共享.

让我知道是否有其他解决方案可以解决这个问题.

Let me know if there is any other solution for this problem.

谢谢

推荐答案

如果您不能移动本地存储库,则有相当简单的方法可以减少Windows上的类路径.方法如下:

There is fairly simple way of reducing classpath on windows, if you can not move your local repo. Here is how:

打开命令提示符并执行此命令

Open command prompt and execute this command

mklink /J c:\repo C:\<long path to your maven repository>

这将创建一个指向您的Maven存储库的链接.现在像这样运行服务:

This will create a link to your maven repository. Now run the service like this:

mvn -Dmaven.repo.local=c:\repo spring-boot:run

仅此而已.现在,您的类路径将减少大约10000个字符(已尝试用于jhipster网关应用程序).

Thats all. Now your classpath will be reduced by around 10000 characters (tried for jhipster gateway app).

祝你好运.

这篇关于Jhipster 5.7微服务无法在Windows上启动,并显示错误CreateProcess错误= 206,文件名或扩展名太长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆