0% found this document useful (0 votes)
57 views

Tested On Windows7 Pro

This document provides instructions for enabling clipboard access in Java on Windows 7 by modifying the java.policy file. It explains that the java.policy file can be found in C:\Program Files\Java\jre6\lib\security\ and should be copied to the user's home folder as .java.policy. The document specifies to add a line granting the java.awt.AWTPermission "accessClipboard" permission to allow clipboard access and reload the browser after saving the modified file.

Uploaded by

Manjunath Shashi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Tested On Windows7 Pro

This document provides instructions for enabling clipboard access in Java on Windows 7 by modifying the java.policy file. It explains that the java.policy file can be found in C:\Program Files\Java\jre6\lib\security\ and should be copied to the user's home folder as .java.policy. The document specifies to add a line granting the java.awt.AWTPermission "accessClipboard" permission to allow clipboard access and reload the browser after saving the modified file.

Uploaded by

Manjunath Shashi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Tested On Windows7 pro. You can find such file (java.

policy) in : C:\Program Files\Java\jre6\lib\security\ Copy file to User Home folder : (Win7) C:\Users\--your--user--name--\ AS ".java.policy" NOTE THE DOT (.) in the front of FILE add line permission java.awt.AWTPermission "accessClipboard"; to file in section : ... ... // default permissions granted to all domains grant { // Allows any thread to stop itself using the java.lang.Thread.stop() // method that takes no argument. // Note that this permission is granted by default only to remain // backwards compatible. // It is strongly recommended that you either remove this permission // from this policy file or further restrict it to code sources // that you specify, because Thread.stop() is potentially unsafe. // See the API specification of java.lang.Thread.stop() for more // information. permission java.lang.RuntimePermission "stopThread"; // allows anyone to listen on un-privileged ports permission java.net.SocketPermission "localhost:1024-", "listen"; // "standard" properies that can be read by anyone permission java.awt.AWTPermission "accessClipboard"; .......... .... SAVE file and reload browser (firefox in my case) You should have COPY/PASTE ENABLED Now

have fun Dobrys

You might also like