How to disable security warning alert -> applet has requested access to local printer

I am using a java applet for accessing a client side printer however each time while print command goes it alert a security warning as "applet has requested access to local printer, Do you want to allow this action?". When I check "always allow" even though it alert every time.
How to disable this Security alert using programm not by using any browser setting?
Who is Participating?
biztigerConnect With a Mentor Commented:
Check out this:

You can do this free using self signed certificate. But still it will confirm to the user if he accept the certificate or not. If certificate is accepted by user, it will never ask user for permission to print.

The only solution to get rid of this is to purchase certificate from a authorised certification authorities. 

It is only possible if you sign your applet with a properly signed certificate.
SuhashkAuthor Commented:
Thanks for solution
But how to sign applet with a properly signed certificate.
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

SuhashkAuthor Commented:
1. When using following command :

      jarsigner -keystore 44store -storepass store123 -keypass key123 -signedjar xyz.jar xyz.jar signFiles

2. Following error occurs:

# An unexpected error has been detected by HotSpot Virtual Machine:
#  SIGBUS (0x7) at pc=0xb77cdd03, pid=3349, tid=3086723280
# Java VM: Java HotSpot(TM) Client VM (1.5.0_15-b04 mixed mode, sharing)
# Problematic frame:
# C  []
# An error report file with more information is saved as hs_err_pid3349.log
# If you would like to submit a bug report, please visit:

3. This generates a log file as hs_err_pid3349.log (Attached with this comment)

SuhashkAuthor Commented:
1. Using following command:

   /usr/bin/jarsigner -keystore 44store -storepass store123 -keypass key123 -signedjar Barcode.jar Barcode.jar signFiles

2. Above error gone but getting  following jarsigner error :
    jarsigner error: gnu.javax.crypto.keyring.MalformedKeyringException: incorrect magic
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.