The information in this article applies to:
This article explains how to install Java packages into the Java Package Manager (JPM), without the aid of a download tool, such as Microsoft® Internet Explorer.
To install a package into the JPM from the command line, using the Rundll32 interface, first put it into a standard ZIP file or a .cab file with an Open Software Distribution (OSD) manifest. Here is a brief explanation of the OSD specification from the Microsoft Developer Network (MSDN):
Software distribution. Recently Microsoft and Marimba co-authored and submitted a specification to the Worldwide Web Consortium (W3C) called Open Software Description (OSD) that describes the delivery of software applications over the Internet. OSD uses unique XML tags to describe software components, including their versions, underlying structure, relationships to other components, and dependencies. It can describe and reference platform-native code (such as Macintosh, Win32, or ActiveX components) as well as Java packages and applications.
Next, use the JPM Rundll32 interface as follows.
Note An alias in %Windir%\Downloaded Program Files is created only while installing a .cab file with an OSD, and not while installing a ZIP file. But in both the cases, a ZIP file with a mangled name will be created in %Windir%\java\packages as expected. This ZIP file contains the package being installed. Here, %Windir% represents the Windows directory. Replace System32 by System in the example below while using Microsoft® Windows® 95 or Microsoft® Windows® 98.
rundll32 %windir%\System32\msjava.dll,JavaPkgMgr_Install <filename>,<file type>,<hi version>,<lo version>,<build>,<package flags>,<install flags>,<namespace>
File Type:
0=CAB
1=ZIP
Package Flags:
0=System class
1=Non system class
2=Needs trusted source
Install Flags:
1=No version check
2=No signer check
4=Autodetect packages
8=Delete input file
A sample command line might look like:
rundll32 %windir%\System32\msjava.dll,JavaPkgMgr_Install myclasses.zip,1,4,79,2151,0,12
kbSDKJava Rundll32 JPM