To create a cabinet file to install Java libraries on a user's computer
vendor.util.loader.class vendor.util.builder.class vendor.applet.start.class
For example, your company is called MyCompany. You have a package called widgets located on your development computer at C:\JavaCode\MyCompany\Widgets\*.class. You want to install this package in the user's %Windir%\Java\Lib directory. You would change to the directory C:\JavaCode\ and run cabarc as follows.
cabarc -r -p -P javacode\ n MyClasses.cab MyCompany\*.*
In this syntax, -r tells cabarc to recursively archive everything under MyCompany, maintain the directory structure (-p), strip javacode from the directories (-P javacode\), and create a cabinet file called MyClasses.cab.
When the package is installed on the user's system, all classes will be placed under the %Windir%\Java\Lib unless the .inf file is modified to place them in the TrustLib directory.
cabarc n OuterCab.cab MyClasses.cab Sample.inf
Code-signing is important for users so they know to trust your code before placing it on their computers. The default settings in Microsoft® Internet Explorer will reject unsigned code. For more information on trusted code, see Guidelines for Making Java Code Trusted. For information and instructions on signing your code, see the Signing a Cabinet File with Java Permissions and http://msdn.microsoft.com/workshop/default.asp .