I have an applet that copies images to the system clipboard. Everything works
fine if I grant permission to access the clipboard as a global privilege. But
when I try to specify the URL codeBase, I continue to get access denied error
that the accessClipboard permission is needed.
Here is what I included in the java.policy file:
grant codeBase "http://abc-ain-www01.org/TestNewBrowsers/*" {
permission java.awt.AWTPermission "accessClipboard";
};
I know the java.policy file is in the right location because it works when I
put in the global grant.
I have read that including the /* means that the .jar file and
the .html page that calls the .jar file would be 'covered' by the policy file.
Not sure how this works behind the scenes, so here is my question: what if the
calling page is a ColdFusion program with the .cfm extension as opposed to a
pure .html page? Does that cause problems??
Terri I. - 17 Oct 2003 18:43 GMT
An update:
I just created a quickie html page that launches my applet, and I get
same error so it obviously doesn't have anything to do with ColdFusion.
I have seen previous postings where folks had similar problems.
Has anybody resolved their problems with getting the java.policy file
to work when defining URL codebase??
> I have an applet that copies images to the system clipboard. Everything works
> fine if I grant permission to access the clipboard as a global privilege. But
[quoted text clipped - 14 lines]
> calling page is a ColdFusion program with the .cfm extension as opposed to a
> pure .html page? Does that cause problems??