Sun Java Solaris Communities My SDN Account Join SDN
 
Tutorials & Code Camps

Signing Jar files for Netscape Communicator with signtool

 
Training Index


Help | Solution | API Docs | Expected Output
Course Notes | Magercises | Module Intro

Prerequisites

Skeleton Code

Starting with the completed WordCount applet from the Using Netscape's Capabilities Classes magercise, sign the code to be used from anywhere on the Internet.

See the Signing Applets for Netscape Communicator course section for additional information.

Perform the following tasks:

  1. Add Netscape's capabilities classes to your CLASSPATH.

  2. Compile the program.

  3. Locate your code signing certificate to sign the code.

  4. If you have a certificate already, skip to the next step, if not create a testing certificate with signtool.

  5. Make a signing subdirectory. The signtool places everything from a particular directory tree into the Jar file.

  6. Copy the .class files into the subdirectory.

  7. Create the signed Jar file with signtool and the testing certificate.

  8. Verify the signing with signtool.

  9. Create an HTML loader for the applet, referencing the signed cab file.

  10. FTP Jar file and HTML loader to a web server and try it out.

  11. Load program into Communicator and try it out.

The task numbers above are linked to the step-by-step help page. Also available is a complete solution to the problem, and a demonstration of the expected behavior.

Copyright © 1998 MageLang Institute. All Rights Reserved.