?
Solved

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

Posted on 2008-11-19
6
Medium Priority
?
6,356 Views
Last Modified: 2012-05-05
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?
0
Comment
Question by:Suhashk
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:biztiger
ID: 22992901
It is only possible if you sign your applet with a properly signed certificate.
0
 

Author Comment

by:Suhashk
ID: 22993018
Thanks for solution
But how to sign applet with a properly signed certificate.
0
 
LVL 8

Accepted Solution

by:
biztiger earned 1500 total points
ID: 22993240
Check out this:
http://forums.sun.com/thread.jspa?threadID=174214
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html

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.
http://en.wikipedia.org/wiki/Certification_Authorities 

0
Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

 

Author Comment

by:Suhashk
ID: 23001413
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  [libzip.so+0xbd03]
#
# 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:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

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



hs-err-pid3349.log
0
 

Author Comment

by:Suhashk
ID: 23002486
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
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question