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

查看:56
本文介绍了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

对于我们的主罐子,它会重复几次,对于我们的一个图书馆罐子,它会重复几次.但是,对于我们的大多数图书馆罐子来说,它根本不会发生. 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. :-)

推荐答案

请参见缺少代码库清单属性: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天全站免登陆