title: Netbeans 11 gradle project output bat in distributions folder "The input line is too long"
body: <p>I have a Java gradle project that I made with Netbeans 11.<br />
  I am using Windows 10 Pro.<br />
  In the build\distributions folder I have a bat file and if I try running it I get a &quot;The input line is too long&quot; error.<br />
  There is no jar file in the folder. There is just a file with no extension.<br />
  I think it has to do with the classpath being too long, but I have no idea how to make it shorter.
  I can run it from netbeans just fine.<br />
  Also the output distribution size is almost 1GB in size.<br />
  Is there anyway I can make it smaller or at least make the error go away?<br />
  The optimal thing would be to make an exe out of the whole thing if that was possible, but even a running jar or bat would be ok.</p>