Griaule Biometrics

Home » Error message: "Unable to create temporary file" and permission issues, while running an Applet

Knowledge Base

Add to Delicious  Add to browser favorites Positive Negative

Title: Error message: "Unable to create temporary file" and permission issues, while running an Applet

SYMPTOMS:

  • When you try to run Fingerprint SDK Java library from an Applet, you get the message "java.lang.SecurityException: Unable to create temporary file" in the java console;

CAUSE:

  • You have granted no rights to the applet. You have to sign it.

SOLUTION:

  1. You have to sign the applet to grant permissions for copying files and loading libraries.
  2. There are 2 ways to get the security keys/certificates:
    • You can buy one from a certification company. This way, your software will be automatically trusted by third-parties.
    • You can create your own certificate (self-signed certificate). This way, anyone who tries to use your software will be prompted something like "This software is signed by an unknown source".
  3. Your end-used surely won't like if you use a self-signed certificate, as the warning messages will make your software look like a virus or something of that kind.

    But, for the first tests, using self-signed certificates is much easier and cheaper: You can create your own certificate using a jdk tool called keytool.

  4. To create the keys/certificate just execute this:
    >> keytool -genkey -alias MyKeyName
  5. It will ask your name, company, city, etc, and, of course, a password.
  6. After you have created a key, you just have to use it to sign your jar file:
    >> jarsigner MyJarFile.jar MyKeyName
  7. It will prompt you for the password, and sign the jar file.

APPLIES TO:

  • Fingerprint SDK Java 2007, GrFinger 4.5