Topic: 求教:java.security.AccessControlException问题! |
Print this page |
1.求教:java.security.AccessControlException问题! | Copy to clipboard |
Posted by: lwwbill Posted on: 2003-06-24 14:10 调用applet是出现的例外,求教: java.security.AccessControlException: access denied (java.net.SocketPermission localhost:8080 connect,resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at sun.plugin.viewer.context.DefaultPluginAppletContext.getImage(Unknown Source) at java.applet.Applet.getImage(Unknown Source) at java.applet.Applet.getImage(Unknown Source) at paperapplet.AssortPaperApplet.start(AssortPaperApplet.java:145) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) |
2.Re:求教:java.security.AccessControlException问题! [Re: lwwbill] | Copy to clipboard |
Posted by: 1255 Posted on: 2003-06-24 17:23 必須開放permission 修改 JRE_PATH/lib/security/java.policy 這個檔案 將相關的permission加進去 |
3.Re:求教:java.security.AccessControlException问题! [Re: lwwbill] | Copy to clipboard |
Posted by: lwwbill Posted on: 2003-06-24 21:27 不行呀,你是怎么加的呢? |
4.Re:求教:java.security.AccessControlException问题! [Re: lwwbill] | Copy to clipboard |
Posted by: diystar Posted on: 2003-06-25 09:03 若不了解其原理,可以先加permission java.security.AllPermission; |
5.Re:求教:java.security.AccessControlException问题! [Re: lwwbill] | Copy to clipboard |
Posted by: lwwbill Posted on: 2003-06-26 09:45 原来就有permission java.security.AllPermission,但是没有,照样报错 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |