Solved

Preload Java Classes

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java Timer (static) 9 36
Error trying to install RTMT Win7 5 41
nextBoolean(double p) for Random class 3 35
Windows 10 IE Certificate Issue 10 42
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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.

867 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

18 Experts available now in Live!

Get 1:1 Help Now