Publishing a Hyperwire Title


To publish a Hyperwire title as an applet, you go through the following general steps:

Note: Publishing a title as stand-alone Java application is similar to publishing an applet. For more information, see exercise 17.

When you use the Title/Title Run command, or click the Run button on the toolbar, Hyperwire generates a Java file and then compiles it into a class file that can run as an applet in a browser that supports Java. As long as you are testing your own code or sharing it with close colleagues, using Title/Run Title is an adequate way to generate a Hyperwire applet or application. But if you plan to distribute your work to a wide audience, and especially if you want to publish it on the Web, then you should use the more robust Title/Publish Title command.

Title/Publish Title generates additional files that can enhance applet performance when the applet is displayed by certain kinds of browsers. Hyperwire publishing accommodates three options for delivering Java applet code:

In addition to generating the appropriate CAB and ZIP files, Publish Title adds their associated tags to the HTML file it generates for the applet. You can copy the HTML code generated by Hyperwire to the HTML file that publishes your applet on the Web. (Browsers that don't support the additional options ignore these additional tags.)

The browser-specific tags are as follows:

CAB files
There is an additional OBJECT tag that contains the CLASSID option, whose value is a computer-generated identification number, and the CODEBASE option, which is a descriptor of the CAB file containing the Hyperwire runtime classes.

In addition to the OBJECT tag, the cabinet option adds a parameter to the usual APPLET tag. The name of this parameter is "cabbase" and its value is a string with the name of the CAB file containing the Hyperwire title code.

See the Microsoft documentation of the CAB format for more information.

ZIP files
ZIP publishing adds an additional ARCHIVE option to the usual APPLET tag. The value of this option is a string with the name of the ZIP file containing the Hyperwire title class and runtime classes.

See Netscape documentation for more information.

By default, Title/Publish Title publishes all three options at once. You can change the options by using the Title Publishing panel of the title's Properties dialog. See the online Help for detailed information about publishing options.

Exercise 3 demonstrates how to publish a Hyperwire title.


Runtime Support for Hyperwire

The basic Hyperwire runtime does not include support for 3D World or Whip modules. If your applet uses either of these features, your end-users also have to install the appropriate runtime classes and DLLs.

To install Hyperwire 3D, the end-user must run the install program Hw3D.exe. To install Hyperwire Whip, the end-user must run the install program HwWhip.exe.

The runtime install programs are in the \Client directory on your Hyperwire CD. These programs are freely distributable. You can provide them on your own Web site, or you can direct end-users to the Hyperwire page on the Kinetix Web site, www.ktx.com/hyperwire. Your site should tell end-users that they need to run the appropriate install programs before they can use your applet.

The \Client directory also has a program to install the Hyperwire runtime classes. It is called HwRt.exe. Installing the runtime classes locally is not necessary for running Hyperwire applets, but it can improve performance, especially when the end-user has an older browser. The program HwRt.exe is also freely distributable.


Cautions About Publishing Media

A couple of cautions relate to publishing the media for your title:

Home | Previous