且构网

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

创建进程错误=206;文件名或扩展名太长

更新时间:2022-04-11 23:29:59

我终于解决了:

结果是 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>