Instructions to do clipboard copy and paste:

Currently only on Macintosh OSX, Internet Explorer can not let an user copy data in or paste data out of an applet. So the following instructions are written for Macintosh OSX users.

In order to let an applet communicate with the clipboard on Mac OSX, user has to add java AWTPermission "accessClipboard" into user's local java policy file. If you already has set up your own .java.policy file under your user's home directory, please add the following sentence to you .java.policy file:

grant {
permission java.awt.AWTPermission "accessClipboard";
};

If there is no .java.policy file exists in your user's home directory, please create a file which contains the only text as the sentence listed above, and save this file as .java.polcy. Most TextEdit applications would not allow an user to save a system file which starts with a dot("."). In this case, you can save the policy file in any other name which is acceptable by the TextEdit application, then open "Terminal" Utility under OSX's Applications, use Unix mainframe command "cp" to copy this policy file to .java.polcy.

What this "accessClipboard" Permission Allows:
Posting and retrieval of information to and from the java AWT clipboard.

Risk of Allowing this "accessClipboard" Permission:
This would allow malfeasant code to share potentially sensitive or confidential information.

Go back to Analysis Lab