Solved

Preload Java Classes

Posted on 1997-11-09
3
250 Views
Last Modified: 2006-11-17
Hi, I am wondering how can I pre-load(install) Java classes that I wrote on the client machine in order to speed up the loading of Java classes.  Or can I let the client machine load all the Java classes that it will need when it hits the first web page.

Thank you very much for your help.
0
Comment
Question by:stsai
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
eugenem earned 200 total points
ID: 1230302
I think you need ARCHIVE tag in <APPLET> definition:

    <APPLET
        CODEBASE = codebaseURL
->      ARCHIVE = archiveList
        CODE = appletFile ...or...  OBJECT = serializedApplet
        ALT = alternateText
        NAME = appletInstanceName
        WIDTH = pixels  HEIGHT = pixels
        ALIGN = alignment
        VSPACE = pixels  HSPACE = pixels
    >
    <PARAM NAME = appletAttribute1 VALUE = value>
    <PARAM NAME = appletAttribute2 VALUE = value>
    . . .
    alternateHTML
    </APPLET>

In that parameter you list all .JAR you have and browser will load them. .JAR file you can create with JAR.EXE from Java SDK. This way works only in Java 1.1. If you use MS SDK for Java, you use .CAB instead of .JAR.

Something like this:
   <applet code=A21 width=256 height=256 archive="toir.jar">
   <param name=img value=test.gif>   <hr>
   We need to convert some of the standard applets to use
   archive.  Any volunteers?   <hr>   </applet>
0
 
LVL 5

Expert Comment

by:fontaine
ID: 1230303
I did pre-loading for the Java Foundation Classes (JAR > 1300Kb).
It works great. If you want the receipt...
0
 
LVL 3

Expert Comment

by:eugenem
ID: 1230304
You can list several JARs in archive parameter: archive="jar1.jar,jar2.jar".
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question