我不擅长 Java,但是当我在简单的 HTML 页面中运行 Applet 时,出现以下错误
SecurityException: Trusted loader attempted to load sandboxed resource from file : C:/Users/lucas/teste.jar
编辑:政策工具
我关注tutorial但在第7步中,我收到以下错误
翻译:
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/