New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Invalid or corrupt jarfile" when packaging more than 66k files #850
Comments
Seems that it's a problem in a way Java reads jar files on launch - and the fix will only come to us in Java 8. Meanwhile, there is a simple workaround:
|
Thanks for following up on this. |
The bug referenced says that the "Fix version" is Java 7 update 40 (out in mid September) so looks like we'll get it sooner than Java 8. |
@ijuma - the resolution on that bug is "Duplicate", the actual entry about backport says "Won't Fix" (and something about that it's "too risky"). |
You are right. My bad. |
I stumbled upon following problem: when packaging a project with lots of files, resulting jar file is perceived as corrupt by java runtime.
Steps to reproduce (on java 7, sbt 0.12.3):
The probable cause of this problem could be the 65k file limit of the old ZIP format - but java 7 already uses ZIP64 by default, and 7z reports that the resulting jar file is indeed in 64-bit format. (relevant discussion)
The same problem happens with sbt-assembly, by the way (it also uses sbt.Package).
The text was updated successfully, but these errors were encountered: