什么原因导致“重复输入” JAR与Eclipse之间的警告? [英] What causes "duplicate entry" warnings when JAR'ing with Eclipse?
问题描述
joda.time
, apache.commons
和一些其他外部 jar
s。 输出 jar
运行,但是,Eclipse通过Export> Java> Runnable Jar生成 jar
时报告了一些警告。我正在选择处理外部 jar
的重新包装选项。这是列出大约146行警告的顶部。
JAR导出完成了警告。查看更多信息的详细信息。
详细信息:
重复条目:allclasses-frame.html
重复条目:allclasses-frame.html
重复条目:allclasses-noframe.html
重复条目:allclasses-noframe.html
重复条目:constant-values.html
重复条目:constant-values.html
重复条目:deprecated-list.html
重复条目:deprecated-list.html
重复条目:help-doc.html
重复条目:help-doc.html
重复条目:index-all.html
重复条目:索引-all.html
重复条目:index.html
重复条目:index.html
重复条目:overview-frame.html
重复条目:overview-frame.html
重复条目:overview-summary.html
重复条目:overview-summary.html
重复条目:overview-tree.html
重复条目:overview-tree.html
重复条目:package-list
重复条目:package-list
重复条目:resources / inherit.gif
重复条目:resources / inherit.gif
由于这是桌面的Swing应用程序,关于 html
和 css
(未显示)的警告是非常意想不到的。咨询?
这看起来像jar文件包括Javadocs。重复的条目将以某种方式破坏。但是,除非您需要Javadoc,否则您不需要关心。尝试获取没有源代码或文档的jar文件。
此外,Eclipse还有一个选项,可以将依赖项jar包含为jar(而不是将其所有内容放在一起)。你也可以试试。
I am jar
ing my Java Swing application which also uses joda.time
, apache.commons
and a few other external jar
s.
The output jar
runs, however, Eclipse did report some warnings while producing the jar
via Export > Java > Runnable Jar. I am choosing the "repackage" option for dealing with the external jar
s. Here's the top of the listing of about 146 lines of warnings.
JAR export finished with warnings. See details for additional information.
Details:
duplicate entry: allclasses-frame.html
duplicate entry: allclasses-frame.html
duplicate entry: allclasses-noframe.html
duplicate entry: allclasses-noframe.html
duplicate entry: constant-values.html
duplicate entry: constant-values.html
duplicate entry: deprecated-list.html
duplicate entry: deprecated-list.html
duplicate entry: help-doc.html
duplicate entry: help-doc.html
duplicate entry: index-all.html
duplicate entry: index-all.html
duplicate entry: index.html
duplicate entry: index.html
duplicate entry: overview-frame.html
duplicate entry: overview-frame.html
duplicate entry: overview-summary.html
duplicate entry: overview-summary.html
duplicate entry: overview-tree.html
duplicate entry: overview-tree.html
duplicate entry: package-list
duplicate entry: package-list
duplicate entry: resources/inherit.gif
duplicate entry: resources/inherit.gif
As this is a Swing application for the desktop, warnings about html
and css
(not shown) are quite unexpected. Advice?
This looks like the jar files include Javadocs. The duplicate entries will somehow clobber that. However, unless you need the Javadocs, you don't need to care. Try to get jar files without sources or docs, though.
Also, Eclipse has an option to include dependency jars as jars (rather than throwing all their contents together). You can try that, too.
这篇关于什么原因导致“重复输入” JAR与Eclipse之间的警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!