I recently had to add gwt-dev.jar to my /war/WEB-INF/lib directory, and now when I try to deploy to appengine I get:
java.lang.IllegalStateException:
Found a jar file too large to upload:
“C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg997121487626565419.tmp\WEB-INF\lib\gwt-dev.jar”. Consider using –enable_jar_splitting.
I’m using the google eclipse plugin, and according to this issue report I can’t use –enable_jar_splitting. Ack!
Can I manually split a jar file apart somehow? I only need a tiny fraction of the thing. If not, what should I do?
Extract the jar. You’ll get a folder structure analogous to that of a java package hierarchy (e.g. com/google/gwt/core). Copy the entire extracted directory structure into war/WEB-INF/lib. Solved.
On linux, you can extract the jar with with
jar -xvf gwt-dev.jar. On windows, just rename it to a zip and you can extract it like a normal zip file (jar files are actually zip files in disguise)Any single file larger than 1MB will not upload to the App Engine.