danBosh
asked on
rmi and applets
I have a working server\client application working using java rmi. I am trying to convert the client so that it works in am applet but with some difficulty.
I get this error when i do appletviewer myApplet.java:
java.sercurity.AccessContr olExceptio n: access denied(java.lang.RuntimePe rmission createSecuritymanger)
i was told to edit my policy file which looks like this:
grant {
permission java.lang.RuntimePermissio n
"createSecurityManager";
permission java.net.SocketPermission "*:1024-65535",
"connect,accept";
permission java.net.SocketPermission "*:80", "connect";
permission java.io.FilePermission
"c:\\home\\ann\\public_htm l\\classes \\-", "read";
permission java.io.FilePermission
"c:\\home\\jones\\public_h tml\\class es\\-", "read";
};
This is not one i made myself i just used it becasuse it worked at the time, is there anything that needs changing?
Also why would changing this help my applet to run because this policy is supplied to the server not the applet, help?
I get this error when i do appletviewer myApplet.java:
java.sercurity.AccessContr
i was told to edit my policy file which looks like this:
grant {
permission java.lang.RuntimePermissio
"createSecurityManager";
permission java.net.SocketPermission "*:1024-65535",
"connect,accept";
permission java.net.SocketPermission "*:80", "connect";
permission java.io.FilePermission
"c:\\home\\ann\\public_htm
permission java.io.FilePermission
"c:\\home\\jones\\public_h
};
This is not one i made myself i just used it becasuse it worked at the time, is there anything that needs changing?
Also why would changing this help my applet to run because this policy is supplied to the server not the applet, help?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.