java.io.IOException: Cannot run program "C:\J8\jre\bin\java": CreateProcess error=206

172 views
Skip to first unread message

Kasper Danielsen

unread,
Apr 30, 2020, 9:53:29 AM4/30/20
to GWT Users
When building on Windows I get the error:
java.io.IOException: Cannot run program "C:\J8\jre\bin\java": CreateProcess error=206

From googling I can tell that I am not the only one with this problem.
It has to do with a command line restriction in Windows on 32k of text as I remember
I have tried out a dozen of suggestions from googling with no luck.


Using IntelliJ IDEA. Have made an Ubuntu VM where I have the excat same project running with IntelliJ

foal

unread,
May 2, 2020, 2:34:10 AM5/2/20
to GWT Users
Hi,

Usually, when I have such a problem, I am creating a link (directory junction) from the project folder to the root of drive c: (e.g.  C:\Development\work\repo\github\foal\gwt-typedarrays -> c:\a) and try to build from the new location. Not sure that this helps you, but your question lacks details to be more specific.

Best,
Stas

Kasper Danielsen

unread,
May 4, 2020, 3:49:49 AM5/4/20
to GWT Users
Hi Stas,

That sounds like my kind of problem.
I have tried moving my projekt to a root folder like c:a but that did not help. I am not sure if it has the same effect as your suggestion.
If I would make a directory junction (New to me)
Is it with the mklink command?


Best,
Kasper

foal

unread,
May 4, 2020, 5:52:58 AM5/4/20
to GWT Users
Hi,

Instead of the link (btw I use Far Manager), you try to move the project, or better checkout sources to c:\a and create a new one (the old project can have a hardcoded path to old location). If it will not help you need to find out the reason and refactor your code to eliminate too long paths.

Best,
Stas
Message has been deleted

foal

unread,
May 4, 2020, 6:04:03 AM5/4/20
to GWT Users

Hi,

Also, take into account that issue maybe in GWT generated code, so check it also. Usually some TEMP/..., but you can set it with parameter -gen

<compilerArgs>
   <compilerArg>-gen</compilerArg>
   <compilerArg>location to where you want it to generate code, could be any temp path</compilerArg>
</compilerArgs>

Stas
Reply all
Reply to author
Forward
0 new messages