Createprocess error=206; the filename or extension is too long

33,432

I finally managed to solve it:

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.

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>
Share:
33,432

Related videos on Youtube

ahlexander
Author by

ahlexander

Updated on December 25, 2020

Comments

  • ahlexander
    ahlexander over 3 years

    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

    Now I get 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 dependency I'm using is:

    <dependency>
        <groupId>org.eclipse.birt.runtime</groupId>
        <artifactId>org.eclipse.birt.runtime</artifactId>
        <version>4.4.1</version>
    </dependency>
    
  • James Jenkins
    James Jenkins over 9 years
    You should mark this answer as accepted, so other will more easily be made aware that you are no longer searching for a solution.
  • ahlexander
    ahlexander over 9 years
    In 19 hours from now I'll be able to do this.

Related