2

Using Java Liveconnect able to access printer through applet from browser, for access rights I've added permission java.lang.RuntimePermission "queuePrintJob"; in C:\Program Files (x86)\Java\jre7\lib\security\java.policy file. But still I'm getting the following warning message

SecurityWarningForPrinting

Using : Java Plug-in 10.9.2.05 ; JRE version 1.7.0_09-b05 Java HotSpot(TM) Client VM

But the same signed applet properly works in xp machine with java7. Even if I check Always allow...., it keeps on showing warning again and again. I searched fully in stack overflow but unable to find right fix. Can any one suggest how to resolve this?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
vels4j
  • 11,208
  • 5
  • 38
  • 63
  • 1
    1) Policy files should not be necessary for a signed applet. 2) It is possible that the root cause is a change in Windows security that is beyond Java's means to alter. – Andrew Thompson Nov 16 '12 at 16:05
  • @AndrewThompson but in xp If I add permission in policy file it grant access and printing works fine without any warning dialog. 2nd point i will check that. thanks. – vels4j Nov 16 '12 at 16:19
  • Were you ever able to find an answer to this problem? I created a self-signed applet for testing locally and I am unable to make the access printer prompt go away on my Windows 7 machine. – Chad Cook Jan 25 '13 at 16:43
  • @ChadCook I couldn't get you. So you are unable to access printer but don't get any warning ? Problem still exists for me. – vels4j Jan 26 '13 at 02:00
  • I would love a solution to this. Seems to be a Windows 7 jvm issue. Sort of a big deal if doing any sort of printing. My applet runs through the list of local printers and this pops up once for each printer so you may have to close it 5 times or more. – William W Apr 03 '13 at 19:27
  • @William I couldn't find solution. what I've done is, shared printer in network and printing from server app. – vels4j Apr 04 '13 at 11:00
  • @vels4j In playing around I found it happens on the latest JVM(1.7.0_17) on all Windows versions. The checkbox is backward. If you don't check it, it won't alert you again until the next time the app runs. It will never remember it longer than a single run though. Also, if you pass the files to print as params at launch, and call print directly from the applet or a button in the applet, it won't display the box ever. It seems to only do it if printing is initialized via a javascript call. – William W Apr 04 '13 at 16:15

0 Answers0