java - 我的 Applet 中出现 SecurityException

标签 java applet digital-certificate

我不擅长 Java,但是当我在简单的 HTML 页面中运行 Applet 时,出现以下错误

SecurityException: Trusted loader attempted to load sandboxed resource from file : C:/Users/lucas/teste.jar

编辑:政策工具

我关注tutorial但在第7步中,我收到以下错误

enter image description here

翻译:

Could not open file policy C:\Program Files\Java\jdk1.7.0_05\bin\raystore: sun.security.provider.PolicyParser$ParsingException line 1: expected [;] found[pípí]

最佳答案

小程序在权限有限的沙箱中运行。

http://docs.oracle.com/javase/tutorial/deployment/applet/security.html

如果您想覆盖这些默认权限,您可以按照下面的详细说明对您的 Applet 进行签名。

http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html

关于java - 我的 Applet 中出现 SecurityException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11507233/

相关文章:

java - 使用jsp和servlet删除表行

java - 我正在从 onClickListener 中删除一个方法并单独调用它,然后它导致了问题

java - 可运行的 Java 小程序仅在调整大小时才起作用

ssl - 是否可以将从 CA 获得的证书转换为 PEM 格式?

visual-studio - Visual Studio makecert DES3 证书

php - 如何使用PHP从浏览器检查数字签名

java - 比较两个对象的字符串每次都返回 false - javafx

java - 为什么我的 Selenium 和 Java 基本程序无法运行?

java - Oracle 是否会在 JRE 7 update 51 上终止内部网小程序?

Java PKCS11 与 iaik