Signing your code is a two step process. First put your classes, graphics, sounds, etc. into a CAB file "mycab.cab" with the following command:
cabarc.exe -p -r -P g:\inetpub\wwwroot\java N mycab.cab *.*
Options: -p option means to save directory structure. -r means recurse subdirectories -P means strip specified prefix from files when added
Second, sign the cab file with the command:
signcode -spc c:\keys\MyCred.spc -v c:\keys\MyKey.pvk mycab.cab
Options: -spc location and name of your credentials file -v location and name of you private key file
You now have a signed CAB file that has access to all available resources.
Posted in: Java