当我想在服务器上加载Applet时,浏览器会显示:
java.lang.SecurityException: Missing required Permissions manifest attribute in main jar: http://<my server>:9080/ram7.5.2.1/applets/lifecycle.jar
at com.sun.deploy.security.DeployManifestChecker.verifyMainJar(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verifyMainJar(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.isAppletTrusted(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:795)
Ignored exception: java.lang.SecurityException: Missing required Permissions manifest attribute in main jar: http://<my server>:9080/ram7.5.2.1/applets/lifecycle.jar
但问题是我已将该属性放在清单文件中,如下所示:
Manifest-Version: 1.0
Created-By: 1.6.0
Permissions: all-permissions
Application-Library-Allowable-Codebase: *
Application-Name: SearchApplet
Caller-Allowable-Codebase: *
我不想更改Java安全级别或将网站放入异常站点列表。
答案 0 :(得分:0)
问题解决了。 它应该首先将标签添加到清单文件中,但也应该将标签添加到html标签。