Microsoft SDK for Java |
![]() FAQ |
![]() Index |
Questions
Why doesn't IE display the test certificate from my signed CAB file?
If you are using a test certificate to sign your cab file, you must enable test certificates for the machine otherwise the signature is not considered valid. You can do this by running the wvtston.reg file included with the code signing kit.
When I run signcode.exe on my CAB file, I get one of the following errors. What are they telling me?
You did not reserve space in your CAB file. Recreate the CAB file using the -s 6144 option to cabarc.exe. This space must be reserved in the CAB file to allow room for the digital signature.
You did not reserve enough space in your CAB file. Recreate the CAB file using the -s 6144 option to cabarc.exe.
Your cabfile is marked read-only.
Your cabfile is corrupt.
When do I use the -i option for cabarc.exe?
The -i switch is used to insert a version number, SET ID, into a CAB file. The version number will be displayed when viewing a cab file with cabarc L <cabfile>. The ID number is used by Diamond.exe when spanning multiple CAB files.
How do I install a Java package on the user's machine?
You can use a setup information (.INF) file in a CAB to install Java libraries and packages on the local machine. The INF file defines which files to extract from the CAB and where to place them on the user's system. There is an example INF file called master.inf included in the SDK for Java. Place all the Java libraries and packages in a CAB file. In another CAB file place this CAB file and the .INF file. Reference this CAB file with an <OBJECT> tag in your HTML page.
Currently, the only solution is to relax the security in Internet Explorer by placing the classes on the user's machine in the classpath or distributing the files in a signed CAB file. You can obtain a certificate for use within the company or use the test certificate and have the users run the wvtston.reg file to enable test certificates on their machines.
Can I include GIF, JPG, or AU files used by my applet in a CAB file?
Yes, the CAB file serves as a single, compressed repository for all .CLASS, audio and image files required by the applet. When creating the CAB file, be sure to use the -r and -p options to cabarc.exe to recurse and preserve directory structure if any of the files in the CAB are in subdirectories. The cabarc.exe command L can be used to confirm the directory structure was preserved.
Where can I get the CAB Developers Kit or the CAB Resource Kit and what are they used for?
The CABDEVKIT has been incorporated into the SDK for Java which is available at http://www.microsoft.com/java/sdk and it also available standalone from http://www.microsoft.com/workshop/java/cab-f.htm. It will give you all of the tools you need to build cabinets. The latest version includes cabarc.exe, a new tool that makes it easier to create cabinets -- directly from the command line.
The CAB Resource Kit will provide the information necessary to help the tool development community understand and work with cabinets. It includes the compression and decompression APIs, documentation on their interfaces, and sample applications using these APIs. Soon, we will add more information on the cabinet file format. The Jan 13 update features multi-thread and multi-context support, and allows use in MFC-based applications.
Where do I get the Code Sign Kit?
The Visual J++ 1.0 CD or the ActiveX SDK. The ActiveX SDK is available at http://www.microsoft.com/intdev/sdk/
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.