Applet AccessControlException访问被拒绝

时间:2013-02-01 03:19:20

标签: java security applet accesscontrolexception jlayer

我想引用JLayer。

<applet
code="AppStart.class"
height="480"
width="640"
archive="jl1.0.jar, AnApplet.jar"
</applet>

我一直在控制台上收到此错误

Exception in thread "pool-1-thread-1" java.security.AccessControlException: 
  access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.SecurityManagerHelper.checkAccessHelper(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkAccess(Unknown Source)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.lang.Thread.<init>(Unknown Source)
at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.addWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

任何帮助?

这是我第一次使用引用的jar。我的其他小程序工作正常。

1 个答案:

答案 0 :(得分:-1)

引用的jar没有签名,它正在尝试创建一个线程,这在applet中的unsigned jar中是不允许的。

签名。