|
Java applets are designed to be automatically downloaded with HTML pages, and run in a web browser. In practice, however, downloading even moderate sized applets over web connections can be very tedious. For example, the WebEQ Math Viewer or Equation Input Control are both around 400K, which takes more than 2 minutes over a 28.8 kbs modem line. An additional problem is that since Java applets are programs, caching them is much more complicated than caching image files. Consequently, readers occasionally find their browsers downloading the Math Viewer several times in a single browser session. To get around the applet caching problem, Netscape and Microsoft have introduced the concept of Java archive files. In essence, an archive is simply a Java applet which is permanently cached on the readers local hard drive so that it only needs to be downloaded once. Nescape Communicator 4.0 or higher uses an archive called a JAR file, while Windows versions of Internet Explorer 3.02 or higher uses a CAB archive file. Unfortunately, automatic installation is not available on the Macintosh versions of Netscape of Internet Explorer. Mac users can, however, do the installatio manually by downloading a file, and copying it to the proper folder on theri hard drives (see below for details). Even with browsers that support automatic installation, must go through a brief installation process since they must grant permission for the installer to copy files to their local hard drives. The self-installing WebEQ archives are digitally signed to reassure readers that they are installing authentic, safe, and thoroughly tested software. Once the archive is installed in the browser, the local copy will
be used whenever an HTML page is encountered that contains applet tags
specifying "webeq.Main" for the One exception to this rule occurs when a ZIP archive is also specified
in the applet parameters. Before self-installing archives were
developed, it was possible to bundle Java program files together into
an ordinary ZIP file for more efficent downloading. If an
Math Viewer Installation Files and ScriptsThe WebEQ 2.5 Author and Professional Editions come with several installation scripts and templates in addition to the actual archive files. As a webmaster, you have several choices about how to distribute the archive files:
Instructions for Window and Unix Netscape NavigatorIt is fairly simple for webmasters to offer their Unix and Windows Netscape
Navigator 4.x users the option to install to their local machines
all the classes needed for the Math Viewer.
A digitally signed JAR archive file, WebEQInstall.jar is included
in the When a viewer using Navigator 4.0 or later downloads
In order for the browser to recognize the JAR archive, you may have to change your sever configuration to insure that .jar files are shipped with the MIME type
application/java-archive
Typically, this amounts to adding a line like
AddType application/java-archive .jar
to your server's srm.conf file (or whatever your server's
equivalent is). Frequently, individual users can do this on a
directory by directory basis, using an .htaccess file. In this case,
you would create a file called .htaccess containing the "AddType ..."
line in the same directory as the HTML file with the applet tags.
For further information on JAR archives and installation scripts in Netscape, see Netscape's Using JAR Installation Manager for SmartUpdate documentation. Instructions for Windows Internet ExplorerInternet Explorer 4.x and above on Windows systems use CAB files
to install the Math Viewer. This requires placing the file
WebEQInstall.cab from The WebEQInstall.cab file is analogous to that of the
WebEQInstall.jar file described above. However, the way
of triggering the CAB installation process is different from Navigator
JAR installation. Instead of making a link directly to the CAB file, you
put the following <OBJECT> element in a HTML page which triggers
the installation process:
<OBJECT CLASSID="clsid:41649A90-B484-11d1-8D75-00C04FC24EE6"
CODEBASE="WebEQInstall.cab#Version=2,5,0,0">
</OBJECT>
NOTE: The CLASSID parameter should appear exactly as written
here; this is crucial. Here is a sample
page. In the commercial version of WebEQ, this is a working
example. However, the actual installation files are not distributed
in the Evaluation Edition, so the sample page will not
function in the Evaluation Edition.
When Internet Explorer hits a page with this OBJECT tag, it checks to see whether WebEQ 2.5 is already installed in that machine, and if not, automatically installs it, or asks the viewer's permission for doing so (depending on their Internet Explorer Security Preferences). Note that IE uses the version number in the <OBJECT> tag to see what version of the archive to check for in the client browser. Thus, this number must reflect the version of the WebEQ archives that you have. If you upgrade WebEQ in the future, you will need to update the version number in the <OBJECT> tag. This method of installation is supported by Windows versions of Internet Explorer 3 and later. It requires a system file called extrac32.exe, which was not included in Internet Explorer 3.02. Unless a user of version 3.02 installed extrac32.exe in some other way (for example, it is installed with Microsoft Java VM build 1518) the install of the WebEQ classes will not happen. This problem does not occur in more recent browser. (See Frequently Asked Questions for CAB Files for more details. Instructions for Macintosh UsersAutomatic archives installation is not supported by the Macintosh versions of Netscape Navigator or Internet Explorer. Thus Mac users must do the installation by hand. There are two steps involved.
Uninstalling the WebEQ Math Viewer ArchivesOnce Math Viewer archives have been installed in a browser, there is no easy way to test pages to see if they are also correctly set up to download the class files for readers that do not have archives installed. This is because in your browser, the archive version will always run and display the equations, whether or not the class files are set up correctly. Thus, for testing purposes, you may want to temporarily uninstall the Math Viewer archives.To remove the MathViewer from Internet Explorer, point your at the pseudo-URL
and remove it if it appears there. Also, go to
and delete the 'webeq' directory there, if it exists.
To remove the MathViewer from Netscape, search for the file
and delete it. Under Windows, it is usually located in the
directory, and under Unix, it is usually in
|
WebEQ 2.5 Server Software Documentation
Created: Aug 08 1997 ---
Last modified: Wed Sep 13 17:04:10 2000
Copyright © 1997-2000 Design Science, Inc.
All rights reserved.