Creating a .zip file for an appletThis utility takes the contents of an HTTP server log file in (common log format), finds the Java classes loaded by the server in it, and creates an uncompressed .zip file that contains those Java classes. With the ARCHIVE attribute added to an APPLET HTML tag, the applet when loaded will look first to find the classes it needs in the .zip file reference by the ARCHIVE attribute; if it does not find all of the classes required by the applet in the .zip file, it will load the classes from the HTTP server. Using a compressed .zip archive reduces the time required to load the applet and increases network efficiency. To use this utility, you must have access to the log files created by the HTTP server. The logToZip utility only works with JDK 1.1.x. To create a .zip file from the server log:
SyntaxFrom the document root directory of your HTTP server:$ java utils.logToZip logfile codebase zipfile Arguments
ExamplesThis example shows the creation of a zipfile for an applet that exists in the document root itself (i.e., no CODEBASE).
$ cd /HTTP/Serv/docs HTTP/Serv/docs$ java utils.logToZip /HTTP/Serv/logs/access "" app2.zip This example shows the creation of a zipfile for an applet that exists in a subdirectory of the CODEBASE, in applets/classes.
C:\>cd \HTTP\docs C:\HTTP\docs>java utils.logToZip \HTTP\logs\access applets\classes app3.zip This slightly more complicated example shows the creation of a .zip file for an applet that exists in a directory outside of the document root, and that is aliased to a directory called /classes by the webserver.
$ cd /usr/local/weblogic/classes $ java utils.logToZip /usr/local/httpd/logs/access.log classes app4.zip |
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|