Createprocess error = 206;文件名或扩展名太长 [英] Createprocess error=206; the filename or extension is too long

查看:10469
本文介绍了Createprocess error = 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 Files\Java\jdk1.8.0_20\jre\bin\java": CreateProcess error=206, The filename or extension is too long

我使用的依赖是:

The dependency I'm using is:

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


推荐答案

我终于设法解决了这个问题:

I finally managed to solve it:

原来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目录并将它们放置在那里:

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>

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

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