Home Contact Us

Qoppa Software - PDF Tools & Libraries

Home / Contact Us

Signing Your Applet

When running as an applet, Java is restricted by what it can do. For instance, it can not open files on your local machine or send content to the printer.

To get around this, you can 'sign' your applet and request for more permissions. When an applet is loaded that is signed, you will see a dialog box show up asking for permission when the applet starts running (you should see this when you run the live demo on our website).

To sign your applet, follow these steps:

  1. Make sure you have the Java JDK (not the JRE) installed. We are using mostly Java 1.4.2, you can download from http://www.javasoft.com.

  2. Generate your own keystore. There is a program called keytool in the bin directory under the Java installation directory that is used to create keystores. The command goes like:

    keytool -genkey -keystore vkeystore -keyalg rsa -dname "CN=Qoppa Software, OU=Qoppa Software, O=Qoppa Software, L=Atlanta, ST=GA,C=NL" -alias printer -validity 3600 -keypass password -storepass password

    You can replace the 'Qoppa' instances with your company name.

  3. Sign both the applet jar file as well as our Qoppa's jar file (jPDFPrint.jar, jPDFViewer.jar or jPDFNotes.jar depending on what library you're using). The command is something like:

    jarsigner -keystore vkeystore -storepass password -keypass password -alias printer -signedjar xxxS.jar xxx.jar

    You will replace xxx.jar with the name of the jar file you are signing and xxxS.jar with the name of the signed jar file.

For more in-depth detail about signing, you can go to http://java.sun.com/docs/books/tutorial/deployment/jar/signindex.html.

View our signed applet demo (This applet demonstrates the features of our java library jPDFNotes to annotate and markup PDF documents in a browser).

Signing Your Applet

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.