On windows the maximum command-line length is 32767 characters. When a sufficiently large classpath is provided, this limit is breached and windows refuses to execute the command throwing an error code 87.
1. Copy all jars to a common folder , say c:\jars and then include them. This way each jar will have a short path i.e. c:\jars (instead of the long path c:\program files\app\lib\app-jar1.jar ) and it should be possible to accomodate them within 38kb.
2. If #1 does not work, then the individual jars could be extracted to one folder and a new jar containing all the extracted files be created. There may be some application jars that are being built on a daily basis and these should not be included along with the rest.