Oracle released Java 6 Update 24 in February 2011 to remedy 21 vulnerabilities: Announcement
As part of this security release, the ability to copy & paste from a computer's clipboard into a Java applet like SQLinForm Online Version has been disabled. To fix this issue there are 2 solutions: Recommended solution: Accept the digital signature. This will allow SQLinForm Online to copy & paste the SQL from/to you clipboard. Work around: If you do not want to accept the digital signature, add to your java.policy file the following line: permission java.awt.AWTPermission "accessClipboard" This issue only happens in the online version but not in the desktop version
Guido Thelen Gu.The Software Edited 12 time(s). Last edit at 03/02/2012 05:37PM by guidomarcel.
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
See cut/paste
and policy file They will tell you various ways around copy/paste not working and how to find the java.policy file. I have a dozen or so of them on my machine.
Okay, I have tried this solution and got it all in the file but when I click on Save I get the message that access to program files is denied.
Any Idea how to get around this? I have tried going back to the earlier version of Java but then it wont allow the page with the Chatroom to load. I am using Windows 7 and IE. Your help would be greatly appreciated. Thank you Sue
arrgh!
The fix didnt work for me at first because the java.policy file on my system was in a different location. Enable the java console, load the sqlinform page with java app in it and press s in the console window. It dumps system and deployment properties.... java.class.path = C:\\PROGRA~1\\Java\\jre6\\classes java.home = C:\Program Files\Java\jre6 java.runtime.name = Java(TM) SE Runtime Environment java.runtime.version = 1.6.0_24-b07 os.name = Windows Vista os.version = 6.0 ...blahblahblah... deployment.user.security.policy = file://C:/Users/John/AppData/LocalLow/Sun/Java/Deployment/security/java.policy thats the one! placed the file there with your instructions and wonderful! cut and paste works again. PS thanks for great tool!
Is there a version of these instructions for non-programmers? I'd love to be able to paste into a Java chat room like I used to. But when you wrote "Accept the digital signature," what did that mean? Was there a time when I rejected it? Where do I go to accept it? Java's help is no help.
As for editing the java.policy file, I can find it, and I can open it with Notebook, but the formatting looks nothing like your example and I worry that if I revised and saved it, it would no longer work. Windows offers to look online for the proper program to open it, and that leads to a Policy Tool utility that I apparently do not have (the suggested Windows command prompt command doesn't work). As for copying the file to my home directory with a dot in front of the name, I don't have any idea what that's about. Is it to keep from damaging the original file while I work on editing it? Do I then remove the dot and save it back where it came from to replace the original file? I must sound like an absolute idiot to you all.
Hi Michael,
if the chat owner is not offering a digital signature and you are not able to edit the plocoy file then there is a 3rd but bot highly recommended solution, i.e. de-install Java 1.6 Update 24 and install 1.6 update 23 Best Regards Guido Edited 1 time(s). Last edit at 04/05/2011 10:56PM by guidomarcel.
I had this issue and it worked like a charm, though i have another problem. I use a program at work that uses java and for some reason when im using this java program and try to save a file to desktop , when i click on the save button, nothing happens. is there a fix for this?
thanks James
Thank-you.
I'd previously reverted to old Java versions (as stated by the admin above), when FireFox went to version 5, even changing the Java version didn't seem to give me help. In my /Users/myname/ directory the .java.policy file was initially hidden and after copying it and editing via Notepad I have Copy / Paste back. Thank-you!
Hi there Sorry to seem dumb, but I am trying to figure out how to make this work.
Problem is I'm not sure if I'm supposed to just leave the file in User/Mike or if its supposed to go in User/Mike/(a folder) Also I'm not sure if I'm putting the line in the right place. Is there a space before or after the "permission java.awt.AWTPermission "accessClipboard"; "? Would really help if someone could post they linn before and after "permission java.awt.AWTPermission "accessClipboard"; " so I can see precisly where it goes as none of this worked for me.
Thank you so much for this tweak!
Just in case anyone is still puzzling about where to place the additional line, these are the bottom few lines of the file I have, after editing:
(All the lines begining with 'permission' have a tab indentation at the start but that doesn't show up here.) It is much easier to do the edit with WordPad, which preserves the formating, rather than NotePad and, of course, it is a *very* good idea to do a backup copy of the file before doing the edit.
Are there some advantages of one language C and Java over the other? Which one is optimal? Which one is more "future proof"? Would it be optimal to know both? If so, which order? I am a little confused on the subject. Just got across this course [www.wiziq.com], will it be helpful also. A little enlightenment could help. Thanks
|