modify java.policy file(under jre folder typically C:\Program Files\JavaSoft\JRE\1.4\lib\security)
grant codeBase "http://127.0.0.1/test/myjarfile.jar" {
permission java.security.AllPermission;
};modify the codBase string according to your applet html.
grant codeBase "http://127.0.0.1/test/myjarfile.jar" {
permission java.security.AllPermission;
};modify the codBase string according to your applet html.
这样多多少少,每个客户机上都要作一些操作,实在太不方便了!
org.apache.xmlrpc.Base64.java,not the security classload matter about sun.misc.base64....Any suggesstion ?but now, I'm considering using other base64 code/decode classes. how about the org.apache.xmlrpc.Base64.java?
不用sun.misc了。
在网上其它什么地方也看到说applet的安全限制禁止载入sun.misc 包,搞不懂为什么,rt.jar里面的包也禁止。罢了罢了,改用另外一个base64编码解码程序来做了,已经成功躲避了这个问题,结帐!