且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Createprocess error = 206;文件名或扩展名太长

更新时间:2021-10-23 01:54:22

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

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>