gwt-dev.jar太大而无法上传到appengine。我可以分割一个jar文件,或者...什么? [英] gwt-dev.jar too big to upload to appengine. Can I split a jar file, or... what?
问题描述
我最近不得不将gwt-dev.jar添加到我的/ war / WEB-INF / lib目录,现在当我试图部署到appengine时,我得到:
< blockquote>
java.lang.IllegalStateException:
找到一个太大的jar文件无法上传:
C:\DOCUME〜1 \ ADMINI〜1 \ LOCAL〜1 \Temp\appcfg997121487626565419.tmp\WEB-INF\lib\gwt-dev.jar。考虑使用--enable_jar_splitting。
我使用google eclipse插件,并根据此问题报告我无法使用--enable_jar_splitting。 Ack!
我可以手动拆分一个jar文件吗?我只需要一小部分东西。如果没有,我应该怎么做? 解压方案
解压缩jar文件。你会得到一个类似于java包层次结构的文件夹结构(例如com / google / gwt / core)。将整个提取的目录结构复制到war / WEB-INF / lib中。已解决。
在linux上,您可以使用 jar -xvf gwt-dev.jar
来提取jar。在Windows上,只需将其重命名为zip,然后就可以像正常的zip文件一样将其解压缩(jar文件实际上就是zip文件)
大于1MB的任何单个文件不会上传到App Engine。
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.
这篇关于gwt-dev.jar太大而无法上传到appengine。我可以分割一个jar文件,或者...什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!