使用Java 7u45启动签名的applet的问题 [英] Issues in Launching the signed applet with java 7u45

查看:72
本文介绍了使用Java 7u45启动签名的applet的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个applet,它也使用javascript进行applet通信.

We have an applet that also uses javascript to applet communication as well.

按照以下链接,将Java升级到7u45后,我们使用清单如下来更改了构建罐子的过程:

After java has been upgraded to 7u45, as per this link, we have made the changes in building the jars using manifest like:

  • 添加的权限:所有JAR清单的所有权限
  • 在所有JAR清单中添加了Application-Library-Allowable-Codebase:*.
  • 在所有JAR清单中添加了Caller-Allowable-Codebase:*.
  • 已添加代码库:*到所有JAR清单中

我们也禁用了-Djnlp.packEnabled参数.

通过这些更改,仅当可用的Java版本更新为JRE7u45时,我们的应用程序才能正常运行.

With these changes our application is running properly only if the java version available is updated to JRE7u45.

  1. 但是尝试使用Java 7 update25或update40启动相同的应用程序时,我们收到错误"LiveConnect (JavaScript) blocked due to security settings".但是,如果仅包含Trusted-Library并将其设置为true,则不要在清单中包括上述参数.我们能够启动该应用程序,但带有警告. 不能将相同的方法用于JRE7u45,因为它会再次收到安全警告.
  1. But trying to launch the same application with Java 7 update25 or update40, we are getting the error "LiveConnect (JavaScript) blocked due to security settings". But instead of including the above mentioned parameters in the manifest if we just include Trusted-Library and setting it to true. We are able to launch the application but with warnings. The same approach cannot be used for JRE7u45 where we get the security warnings again.

在其中一篇文章中,我看到了一种构建两个jar的方法(一个使用方法1,另一个使用方法2),并且基于Java版本来部署相应的jar.

In one of the posts, I have seen an approach to build two jars(one with approach 1 and the other with approach 2) and based on the java version to deploy the respective jar.

但是此解决方案可能效果不佳,因为我们的应用程序包含5个以上的jar文件,并且每个文件都保留两个副本是很麻烦的.

But this solution may not be that effective because our application includes more than 5 jar files and maintaining two copies of each is tedious.

您的建议将有助于我们了解一种可以在所有Java版本中启动我们的应用程序的方法.

Your suggestions would be helpful to us to know an approach where our application would be launched with all the java versions.

推荐答案

自Java 7 Update 51开始,您应该能够同时使用(Trusted-Library)和新参数.然后,只有Java 7 Update 45应该发出警告,所有其他版本都应该起作用.

Since Java 7 Update 51 you should be able to use both (Trusted-Library) and the new parameters. Then only Java 7 Update 45 should have a warning, all other versions should work.

这篇关于使用Java 7u45启动签名的applet的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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