Site With The Lamp

A LAMP Portal


Linux
Java
PHP
Blog
/etc

Jarsigner.

New Articles

JSP upload with progress bar.

Swing slow paint problem.

The case of the missing errors.

If you have followed the tutorial so far you have an applet that requests special permissions and you have a signature which you can use to sign the applet, but you still need to package the classes properly into jarfile before you sign it. To create the jar, cd to the appropriate directory and type

jar -cvf applet.jar com

You are now ready to sign your first applet. The command is:

jarsigner applet.jar colombo

you will be prompted for the password to the keystore. The jarsigner will place your signature inside the jar file that you created above. You can confirm this by examining the jar file with file-roller,winzip or similar tool.

Now all you need to do is to actually run the applet and that's very straight forward you do not need to anything special since the plug-in will take care of asking for extra permissions.

That brings us to the end of part I of this article, we will return shortly to look at other ways in which we can 'jump' the sanbox'

See the demo | See the code


Short cuts
  Part 1   Introduction, AccessController, keytool, jarsigner
  Part 2   The help of a proxy