title: SpringBoot .Jar build file limit
body: <p>I'm trying to build a 6GB size .JAR archive but it won't work. It seems like there is a limit of 4GB for a file since building is successful if I reduce my files to 4GB (4096MB) limit. But I NEED it to be >=6GB and it must contain 25000 files. Please, help me.</p>
  
  <p>Error that I get when trying to start this .jar:</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalStateException:   java.lang.IndexOutOfBoundsException
      at org.springframework.boot.loader.ExecutableArchiveLauncher.&lt;init&gt;(ExecutableArchiveLauncher.java:43)
      at org.springframework.boot.loader.JarLauncher.&lt;init&gt;(JarLauncher.java:35)
      at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
  Caused by: java.lang.IndexOutOfBoundsException
      at org.springframework.boot.loader.jar.AsciiBytes.&lt;init&gt;(AsciiBytes.java:69)
      at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.load(CentralDirectoryFileHeader.java:83)
      at org.springframework.boot.loader.jar.CentralDirectoryParser.parseEntries(CentralDirectoryParser.java:68)
      at org.springframework.boot.loader.jar.CentralDirectoryParser.parse(CentralDirectoryParser.java:57)
      at org.springframework.boot.loader.jar.JarFile.&lt;init&gt;(JarFile.java:118)
      at org.springframework.boot.loader.jar.JarFile.&lt;init&gt;(JarFile.java:106)
      at org.springframework.boot.loader.jar.JarFile.&lt;init&gt;(JarFile.java:92)
      at org.springframework.boot.loader.jar.JarFile.&lt;init&gt;(JarFile.java:83)
      at org.springframework.boot.loader.archive.JarFileArchive.&lt;init&gt;(JarFileArchive.java:61)
      at org.springframework.boot.loader.archive.JarFileArchive.&lt;init&gt;(JarFileArchive.java:57)
      at org.springframework.boot.loader.Launcher.createArchive(Launcher.java:129)
      at org.springframework.boot.loader.ExecutableArchiveLauncher.&lt;init&gt;(ExecutableArchiveLauncher.java:40)
      ... 2 more
  </code></pre>