Solved

Preload Java Classes

Posted on 1997-11-09
3
247 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now