Java 7 中新的 JNLP Missing items 警告是怎么回事? [英] What's with the new JNLP Missing items warnings in Java 7?

查看:47
本文介绍了Java 7 中新的 JNLP Missing items 警告是怎么回事?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们从 Java 6 切换到 Java 7 后,我的 JNLP 仍然可以正常工作,但它现在引发了一系列错误,如下所示:

My JNLP still works fine after our switch from Java 6 to Java 7, but it now throws a whole series of errors like this:

Missing Application-Name: manifest attribute for: http://blah.com/app.jar
Missing Permissions manifest attribute for: http://blah.com/app.jar
Missing Codebase manifest attribute for: http://blah.com/app.jar

它对我们的主 jar 重复几次,对我们的一个库 jar 重复几次.但是,对于我们的大部分库 jar,它根本不会发生.JaNeLa 列出了一些优化机会(通过更改一些默认值),但这些似乎都不相关,也没有发现实际错误.

It repeats several times for our main jar and a couple times for one of our library jars. However, it does not occur at all for the bulk of our library jars. JaNeLa lists some optimization opportunities (by changing some defaults), but none of those appear to be related, and no actual errors are found.

到目前为止,在网上搜索让我对如何将 JNLP 文件格式变成 Java 7 认为有价值的东西一无所知.:-)

So far searching the web has left me empty handed on how to make the JNLP file format into something that Java 7 finds worthy. :-)

推荐答案

参见 Missing Codebasemanifest 属性 for:xxx.jar 用于解释权限和代码库.如果您使用 ant,则可以使用以下命令将条目添加到清单中:

See Missing Codebase manifest attribute for:xxx.jar for an explanation for Permissions and Codebase. If you use ant, you can use the following to add the entries to the manifest:

<manifest file="${source}/META-INF/MANIFEST.MF" mode="update">
  <attribute name="Permissions" value="all-permissions"/>
  <attribute name="Codebase" value="${jnlp.codebase}"/>
  <attribute name="Application-Name" value="${app.name}"/>
</manifest>

Java 7 更新 45 破坏了我的 Web Start SWT应用程序可能还有一些有趣的信息

Java 7 update 45 broke my Web Start SWT application might also have some interesting information

这篇关于Java 7 中新的 JNLP Missing items 警告是怎么回事?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆