创建进程错误=206;文件名或扩展名太长 [英] Createprocess error=206; the filename or extension is too long

查看:92
本文介绍了创建进程错误=206;文件名或扩展名太长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道之前有人问过这个问题,但我无法使用其他帖子中的解决方案来解决它.我正在尝试使用 maven 编译一个复杂的 gwt 项目层次结构.一切正常,直到我不得不再添加一个库,更具体地说:org.eclipse.birt.runtime

I know this question has been asked before, but I wasn't able to fix it using solutions from other posts. I'm trying to compile a complex hierarchy of gwt projects using maven. Everything worked fine until I had to add one more library, more specifically: org.eclipse.birt.runtime

现在我收到此错误:

[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.1:debug ....

..... [Lots of jars, many containing birt, no duplicates though] .....


Error while executing process. Cannot run program "C:Program FilesJavajdk1.8.0_20jreinjava": CreateProcess error=206, The filename or extension is too long

我使用的依赖项是:

<dependency>
    <groupId>org.eclipse.birt.runtime</groupId>
    <artifactId>org.eclipse.birt.runtime</artifactId>
    <version>4.4.1</version>
</dependency>

推荐答案

我终于解决了:

结果是 birt 连同它的依赖项,只是添加了太多的库,并且类路径变得太长,windows 命令无法处理.此外,birt 库的名称太长了.

Turns out birt, together with its dependencies, was simply adding too many libraries and the classpath became too long for windows command to handle. Furthermore, birt libraries have stupidly long names.

使用此依赖项解决了它(我只需要运行时),我创建了 lib 和 birt 目录并自己将 jar 放在那里:

Solved it using this dependency (I only needed the runtime), I created the lib and birt directories and placed the jar there myself:

<dependency>
    <groupId>org.eclipse.birt.runtime</groupId>
    <artifactId>org.eclipse.birt.runtime</artifactId>
    <version>4.4.1</version>
    <scope>system</scope>
    <systemPath>${basedir}/lib/birt/birt.runtime-4.4.1.jar</systemPath>
</dependency>

这篇关于创建进程错误=206;文件名或扩展名太长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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