java – Createprocess error = 206; filename or extension is too long

See the English answer > CreateProcess error = 206, the filename or extension is too long when running main() method15

Now I receive this error:

[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 dependencies I'm using are:

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

Solution

I finally managed to solve it:

As a result, birt, along with its dependencies, just adds too many libraries, and the classpath becomes too long for windows commands to handle Besides, birt library has a long name

After solving this dependency (I only need the runtime), I created the lib and birt directories and put the jar there:

<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>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>