troubleshooting Question

rmi and applets

Avatar of danBosh
danBoshFlag for United Kingdom of Great Britain and Northern Ireland asked on
1 Comment1 Solution227 ViewsLast Modified:
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

java.sercurity.AccessControlException: access denied(java.lang.RuntimePermission createSecuritymanger)

i was told to edit my policy file which looks like this:

grant {

      permission java.lang.RuntimePermission
    permission "*:1024-65535",
    permission "*:80", "connect";        
        "c:\\home\\ann\\public_html\\classes\\-", "read";
        "c:\\home\\jones\\public_html\\classes\\-", "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?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros