This discussion is archived
1 Reply Latest reply: Jul 12, 2012 4:59 AM by 947952 RSS

applet can't find printers (granted permission) on CentOS 6 [solved]

947952 Newbie
Currently Being Moderated
PrintServiceLookup.lookupDefaultPrintService() returns null in the applet but returns the default printer when called in a small application.

I tried permission java.lang.RuntimePermission "queuePrintJob" and also clicking OK to grant permission to the applet to access the printer. The applet also has permission for port 631. I thought it might be a CUPS problem but the application works.

PrintServiceLookup.lookupPrintServices(null, null) returns an empty list.

This is for a kiosk so I can set whatever permissions are required.

What am I missing?

Thanks

Switching from Seamonkey 1.1.16 to Firefox solved the problem (same JRE 1.7.0_05).

Edited by: 944949 on Jul 12, 2012 4:53 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points