Re: Need help with Load time

From: Reinhard Prehofer <reinhard.prehofer_at_cet.at>
Date: Tue, 9 Nov 1999 13:59:46 +0100
Message-ID: <809694$sto$1_at_readme.inode.at>


(1) Open the Java COnsole in Netscape and type in ? or l - this will enable class capturing and thus you can see what class files are currently being loaded and where maybe the whole process is getting stuck.

(2) try to (pre-) load in a Thread - like indicate in the following code fragment.

final class LadeThread extends Thread {
private int requestedWidth = 500;

   private int requestedHeight = 300;

      // Fully qualify the classnames - including the package names // else you get the "Class not found");

   private String klassen[] = {
"AMAConst",
"TabPanel",
"pkg1.class1",
"pkg1.class2",
"pkg1.class3",
"pkg1.class4",
"pkg1.class5",

...

      };

public void run() {

    ladeKlassen (klassen);

public void start() {

   super.start();
}

// lade aus Performancegründen der Reihe nach diverse Klassen in einem eigenen Thread !!!

    public void ladeKlassen (String[] klassen) {

       for (int i=0; i < klassen.length; i++) {
          appendText ("Lade nun die Klasse: " + klassen[i] + "\n" );
          try {
             Class.forName(klassen[i]);
          }
          catch (ClassNotFoundException e1) {
             System.out.println("Klasse " + klassen[i] + " konnte nicht
geladen werden" + e1.toString());
          }
       }

    }

hope it helps, reinhard

Ryan <ryanrich[NOSPAM]_at_flash.net> wrote in message news:1oLV3.3383$OQ.497838_at_news.flash.net... > I am creating a simple applet in Oracle JDeveloper 2.0. I am using the > InfoBus form to model a little talbe in Oracle 8i. Just a few records exist
> in this table. When I run it inside JDeveloper it works great and fairly > quickly but when I run it through a browser under Apache web server it just
> sits there 'Loading Java Applet' F O R E V E R and I dont know if it will > ever load. Why is this taking so long? I am not getting any errors. Machine

> is P2400 128MB RAM NT4 SP4.
>
> Any help would be greatlyt appreciated!
>
> Ryan
>
>
Received on Tue Nov 09 1999 - 13:59:46 CET

Original text of this message