Got CreateProcess Error 206 when trying to build the project

1,243 views
Skip to first unread message

Camelia Bencheqroun

unread,
Oct 4, 2018, 1:02:13 PM10/4/18
to Drools Setup
Hi, 
I'm trying to build the source code and it failed I'm getting this error : 
 
  [ERROR] Unable to start external process
[INFO] java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_181\jre\bin\java": CreateProcess error=206, The filename or extension is too long
[INFO] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
[INFO] at com.google.gwt.dev.ExternalPermutationWorkerFactory.launchExternalWorker(ExternalPermutationWorkerFactory.java:282)
[INFO] at com.google.gwt.dev.ExternalPermutationWorkerFactory.getWorkers(ExternalPermutationWorkerFactory.java:374)
[INFO] at com.google.gwt.dev.PermutationWorkerFactory.createWorkers(PermutationWorkerFactory.java:351)
[INFO] at com.google.gwt.dev.PermutationWorkerFactory.compilePermutations(PermutationWorkerFactory.java:254)
[INFO] at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:211)
[INFO] at com.google.gwt.dev.Compiler.compile(Compiler.java:219)
[INFO] at com.google.gwt.dev.Compiler.compile(Compiler.java:155)
[INFO] at com.google.gwt.dev.Compiler.compile(Compiler.java:144)
[INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
[INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
[INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
[INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:125)
[INFO] Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
[INFO] at java.lang.ProcessImpl.create(Native Method)
[INFO] at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
[INFO] at java.lang.ProcessImpl.start(ProcessImpl.java:137)
[INFO] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

Any ideas please ?

Thanks

Michael Anstis

unread,
Oct 4, 2018, 1:06:21 PM10/4/18
to drools...@googlegroups.com
On Windows you'll need to enable long file name support. There's a key in the registry or something (sorry not a Windows user). Google should help from here :-)

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/4ad0304c-cdc7-4300-a0ea-ec3de57ea6b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Toni Rikkola

unread,
Oct 5, 2018, 12:53:14 AM10/5/18
to drools...@googlegroups.com
You need to enable the long name support for:
- Windows file system
- Git
- IntelliJ Idea

Idea is the only one that notices the issue by itself and asks if you want to enable it.

Then if you are building workbench projects you might not be able to build the showcases or wars with GWT. This is because the Maven GWT plugin has not support for long file names.

The workaround I use is to use Windows Subsystem for Linux. So I installed Ubuntu into my Windows and I can run the war builds with it. Or you can just use Linux in virtual box.

Toni

Camelia Bencheqroun

unread,
Oct 5, 2018, 8:44:53 AM10/5/18
to drools...@googlegroups.com
Thank you for your response !

I'm using Eclipse IDE non IntelliJ. But even if I try to build it with the command prompt I have the same problem !
I will try to build it with the Mac OS

You received this message because you are subscribed to a topic in the Google Groups "Drools Setup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-setup/_XHiUzeRTHU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-setup...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages