I have a particularly large java command to execute (lot's of parameters, long classpath, etc) - and when I run it like that (as I normally do in my Windows via git bash app, which tries to emulate linux bash):
java <classpath here> <params>
it returns me the weird message: sh.exe": /c/Windows/system32/java: Bad file number
BUT, whenever I decrease the command length (by removing any part of it - classpath, params) to about 32k symbols - it runs ok.
Is there any length limit in Windows/bash/java to a single executed command ?