How to grant print permission to my applet without modifying java.policy file

1.7k views Asked by At

Hi i want to grant

permission java.lang.RuntimePermission "queuePrintJob";

Permission to my java applet which runs on client machine progrmatically in java. Because i can't change the java.policy class of client.
my applet goes like

<applet name="printBarCode" code="printBarCode.TestPrinting2.class" archive="./printBarCode/printBarCode.jar" width="0" height="0"> </applet> 
1

There are 1 answers

1
Andrew Thompson On BEST ANSWER

There are basically 2 strategies you can pursue here: