java 小程序 java.security.AccessControlException:访问被拒绝 java.net.SocketPermission [英] java applet java.security.AccessControlException: access denied java.net.SocketPermission

查看:32
本文介绍了java 小程序 java.security.AccessControlException:访问被拒绝 java.net.SocketPermission的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一个朋友给了我一个脚本来在我的网站上运行我的世界皮肤,但我不断收到这个错误,我不知道如何解决这个问题... =(http://allcitybuilder.com/new/example.html

I friend of mine gave me a script to run minecraft skins on my site but i keep getting this error and i dont have any clue how to go about this... =( http://allcitybuilder.com/new/example.html

java.security.AccessControlException: access denied (java.net.SocketPermission www.minecraft.net:80 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.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.<init>(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
   at net.minecraft.skintest.math.Zombie$1.run(Zombie.java:82)

推荐答案

可能最简单的方法是将资源复制到您的站点,确保您已获得版权所有者的适当权利.

Probably the easiest thing would be to copy the resources to your site, making sure you have been granted appropriate rights by the copyright holder.

或者,站点可以添加一个 crossdomain.xml 文件以允许访问从非同源站点加载的代码.

Alternatively, the site may add a crossdomain.xml file to allow access to code loaded from non-same-origin sites.

可能需要对代码进行签名以获得对本地计算机的完全访问权限.然而,这需要用户接受风险,编写安全代码异常困难.

It is possibly to sign the code to gain full access to the local machine. However, this requires the user to accept the risk and writing secure code is surprisingly difficult.

这篇关于java 小程序 java.security.AccessControlException:访问被拒绝 java.net.SocketPermission的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆