Issues in Launching the signed applet with java 7u45

佐手、 提交于 2019-12-07 00:48:23

问题


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

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

  • Added Permissions: all-permissions to Manifest of all JARs
  • Added Application-Library-Allowable-Codebase: * to Manifest of all JARs
  • Added Caller-Allowable-Codebase: * to Manifest of all JARs
  • Added Codebase: * to Manifest of all JARs

Also we disabled the -Djnlp.packEnabled parameter.

With these changes our application is running properly only if the java version available is updated to 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.

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.

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.

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


回答1:


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.



来源:https://stackoverflow.com/questions/19656826/issues-in-launching-the-signed-applet-with-java-7u45

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!