Simple java applet help

im following the java tutorial at their web site online. I'm having problems with these simple applets:
http://java.sun.com/docs/books/tuto...kMeApplets.html
I compiled them fine on my other computer, but when I compiled them on the computer I am using presently, I get a problem.
the files seem to compile fine. but when i compare them with the files online, my files that i compiled are a little less in size. when i load the applet in the provided html file, all i get is a blank gray screen. and when i move the mouse over the gray screen, it says for a split second: "load: class ClickMe not found"
i have all the correct files...but after compiling the .java files, it doesn't work. the .class files on the web work fine. but my compiled files seem to be smaller than those on the web.
the ClickMe.class file i compiled is 1.45 KB (1,494 bytes)
the Spot.class file i compiled is 293 bytes (293 bytes)
the ClickMe.class file online is 1.50 KB (1,539 bytes)
the Spot.class file online is 339 bytes (339 bytes)

I believe that one (or more) of these applats are currently broken - the files are mislocated, I believe. Just skip the clickme applets (unless you want to debug them yourself).

Similar Messages

  • Simple java applet help needed

    hi, im having trouble with an applet im developing for a project.
    i have developed an applet with asks the user for simple information( name,address and phone) through textfields, i wish for the applet to store this information in an array when an add button below the textfeilds is pressed.
    client array[];
    array=new client[];//needs to be an infinate array!
    I have created the client class with all the set and get methods plus constructors needed but i dont know how to take the text typed into the textfields by the user and store them in the array.
    i also need to save this info to a file and be able to load it back into the applet.
    Could some please help! Thank you for your time.

    Better maybe redefine the idea using an data structure :
    public class client{
    private char name[];
    private char address[];
    private int phone;
    public class vector_clients{
    private client vect[];
    // methods for vect[]
    What is your opinion about ???

  • Simple button applet help

    ok, i'm working on a project involving buttons, and i finished it and it compiles fine, but when i run the applet (using textpad), nothign shows up.
    i decided to make a new applet of only the frame and buttons, and i got the same problem. here is the simple one.
    import java.util.*;
    import java.applet.Applet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class framek extends JApplet
         public static final int WIDTH = 600;
         public static final int HEIGHT = 300;
         public void framek()
              JFrame myWindow = new JFrame();
              myWindow.setSize(WIDTH, HEIGHT);
         Container contentPane = myWindow.getContentPane();
              contentPane.setBackground(Color.blue);
              contentPane.setLayout(new BorderLayout());
              JPanel button = new JPanel();
              button.setLayout(new FlowLayout());
              JButton convert = new JButton("Translate");
              button.add(convert);
              JButton delete = new JButton("Delete");
              button.add(delete);
              contentPane.add(button, BorderLayout.SOUTH);
    i might have made some mistakes in the shortening of my project (such as variables that arent used) but i just need help with getting the buttons and background things to show. I used very similar programs in a textbook and on the web to check and they worked fine on textpad, and this doesnt. its probably a very simple thing that i forgot but i cant find it yet, as i am fairly new to swing.
    any help is appreciated thanks

    /*  <applet code="HelloApplet" width="600" height="300"></applet>
    *  use: >appletviewer HelloApplet.java
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class HelloApplet extends JApplet
        public static final int WIDTH = 600;
        public static final int HEIGHT = 300;
        public void init()
            Container contentPane = getContentPane();
            contentPane.setBackground(Color.blue);
            contentPane.setLayout(new BorderLayout());
            JPanel button = new JPanel();
            button.setLayout(new FlowLayout());
            JButton convert = new JButton("Translate");
            button.add(convert);
            JButton delete = new JButton("Delete");
            button.add(delete);
            contentPane.add(button, BorderLayout.SOUTH);
        /** this is a convenience method */
        public static void main(String[] args)
            JApplet applet = new HelloApplet();
            JFrame myWindow = new JFrame();
            myWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            myWindow.add(applet);
            myWindow.setSize(WIDTH, HEIGHT);
            myWindow.setLocation(200,200);
            applet.init();
            myWindow.setVisible(true);
    }

  • Java applet help for mountain lion update on macbook pro

    Hey, I upgraded to the new mountain lion update yesterday and since then when opening java applets, it won't allow me to do anything with them such as entering usernames and passwords. It was working fine yesterday before I did the update but now I can't seem to get it to work. I've reinstalled Java and it says it's all installed correctly. I was wondering if anyone else is having/had the same problem and knows what to do?
    Thanks in advance

    Hi Leonie! I was running into the same problem on my Macbook Air with ML but I just found a soultion that worked for me.
    I downloaded and installed Java 7 from oracle's website.  And then in the java prefences referenced before, changed the Java 7 build to be my default. 
    All my applets work great now for me.
    Hope this helps!

  • Java applet help

    iam trying to put the checkboxes in different line
    so all the checkbox is alligned
    what the syntax to do that??
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    public class Computers extends Applet implements ActionListener
         //declare varibles
         double totalCost;
         //contruct Label and Checkboxes
         Label companyName = new Label ("REASONABLE COMPUTER CORPORATION");
         Label system = new Label ("Basic Computer System cost: $575");
         Label choice = new Label ("Select the peripheral devices you want add");
         CheckboxGroup selectGroup = new CheckboxGroup();
              Checkbox printers = new Checkbox("Printer $150",false,selectGroup);
              Checkbox monitors = new Checkbox("Monitor $300",false,selectGroup);
              Checkbox modems = new Checkbox("Modems $100",false,selectGroup);
              Checkbox speaker = new Checkbox("Speaker $20",false,selectGroup);
              Checkbox microphone = new Checkbox("MircoPhone $15",false,selectGroup);
              Checkbox external = new Checkbox ("250G external hard driver $200",false,selectGroup);
         Button calc = new Button("Calculate");
         Label output = new Label("Click Calculate to see your final price");
         //init method for adding the stuff
         public void init()
              setBackground(Color.green);
              setForeground(Color.black);
              add(companyName);
              add(system);
              add(choice);
              add(printers);
              add(monitors);
              add(modems);
              add(speaker);
              add(microphone);
              add(external);
              add(calc);
              calc.addActionListener(this);
              add(output);
         public void actionPerformed(ActionEvent e)
              totalCost = 575 + getCode();
              output(totalCost);
         public double getCode()
              double dollars = 0;
              if (printers.getState()) dollars += 150;
              else if (monitors.getState()) dollars += 300;
              else if (modems.getState()) dollars += 100;
              else if (speaker.getState()) dollars += 20;
              else if (microphone.getState()) dollars += 15;
              else if (external.getState()) dollars += 200;
                return dollars;
         public void output(double totalCost)
              output.setText("Your Final cost is: " + totalCost + ".");
    }

    hiddendragon wrote:
    iam trying to put the checkboxes in different line
    so all the checkbox is alligned
    what the syntax to do that??There's no "syntax" involved. Instead you have to read up on and study the various layout managers. You could for instance use a BoxLayout to stack information on top of each other, and put your checkboxes in their own panel that uses flowlayout. There's many many ways to arrange this, and the best is the one that works for you. Start here .

  • 2 simple java applet

    Hi
    I have 2 short questions about java applets.
    1. when my applet comes up in the web browser, I have to click it before it will identify and fire off keyup and keydown method. (it's like i have click it with the mouse to wake it up or put it in focus) these are the methods i'm using
    public boolean keyUp(Event e, int key){
         showStatus(" ");
         return true; }
    public boolean keyDown(Event e, int key){
    return true;}
    QUESTION: Is there something special, that I have to do to make it automatically accept or see keyDown actions.
    2. QUESTION 2: What is the syntax to capture key event for the Spacebar and Esc button?
    For example I know that the event to catch the letter m is like this :
    if(key=='m'||key=='M'){
    and function key is caught like this
    if(key==Event.F1){
    But how do I catch the spaceBar and Escape?
    Thanks a lot in advance.
    Stephen
         

    hi is requestFocus() part of jdk 1.0 ?
    Have you ever used it before successfully?
    If so, can type a little syntax about how it works ?
    and to the person who had the javascript solution could you type a little syntax about how it works ? i also tried that. i put my applet in a div container and try to give it focus. I also tried to give the applet itself a name and give it focus with
    document.appletname.focus();

  • Creating a SIMPLE Java APPLET for a HTML website

    Hello!
    I was wondering if anyone can help me.
    i have designed a very simple HTML website and wanted to make an applet.
    which program would be best (eclipse, blue j...etc)
    and how do i go about it!
    i am very new to this and would appriciate the help
    many thanks in advance

    sabre150 wrote:
    gimbal2 wrote:
    your brain to do all the hard work. It needs to be preloaded with knowledge of programming, the Java language, the Java platform and the Java plugin relating to applets before it will work.So that's where I have been going wrong!Lies, I know for a fact that you know a thing or two. What are you trying to do here? Hide from your responsibilities as a knowledgeable person?

  • Simple java question, help please

    please help
    -i am just starting out in java and im havin an early problem. Im trying to run a small java script from a commant prompt but im getting the following error after i enter this command at my prompt
    c:\javatest>javac HelloARP.java
    javac is not as an internal or external command, operable program or batch file.
    when i enter
    c:\java -version
    i get the following message: registry key software\javasoft\java runtime enviornment\current version has value of 1.1 but 1.4 is requiured
    error: could not find java.dll
    error: could not find java 2 runtime enviornment
    -im sure this is a simple error on my part. all im trying to do is run my first lil program that i saved in notepad, its only 5 lines long. here is the lil test program im trying to execute
    class HelloARP {
    public static void main (String[] arguments) {
    System.out.println("What's good ARP?");
    - all responses and help are welcomed. Thank you ahead of time for anyone that can help me get started.

    Hi
    First of all uninstall your current JDK installation, if you can get to the registry delete the registry entries for the old version of java which was there on your machine.
    Now do a fresh install of your j2sdk1.4.1, make sure that you will install the JRE with the J2SDK1.4.1.
    Once you are done, set your classpath in autoexec.bat if you are using Windows 95/98
    or set your environment variables if you are using Win NT/2000/XP.
    If using solaris or other unix flavors see the included installation instructions provided.
    Let me if you face the same problem.
    Thanks
    Swaraj

  • Why is a simple Java applet not diplaying properly in its window bounds?

    Hello, I am having difficulty displaying applets on the Mac. Here is one of the simplest applets copied exactly from the Sun java website. This applet runs fine on PCs, unfortunately, on my sister's Mac, it does not display properly. It looks like the browser reserves the proper cutout window for the applet. But then the applet does not display in that window, instead, it paints itself shifted away from that window, even covering browser's borders and toolbars.
    She is using Leopard, the Mac was bought new last year, and the browser is Firefox. She is using java 1.4, I don't want to switch that, because that is what is by default running there. Most internet users would not know to switch their java version if an applet does not show properly. So it has to show properly for any java version that may be default on a Mac.
    Here is the SSCCE:
    file HelloWorld.java:
    import javax.swing.JApplet;
    import java.awt.Graphics;
    public class HelloWorld extends JApplet {
    public void paint(Graphics g) {
    g.drawRect(0, 0,
    getSize().width - 1,
    getSize().height - 1);
    g.drawString("Hello world!", 5, 15);
    file HelloWorld.html:
    <APPLET CODE=HelloWorld.class WIDTH=850 HEIGHT=730 >
    </APPLET>

    You'll most likely get a cogent response posting to the Unix forum under OS X Technologies.

  • Very simple java project (help please)

    Hello. For a project I have to somehow use MouseListener to make something. My idea was to have a rectangle in which a circle (hockey puck) follows the user's mouse and whenever the user places the circle into a certain area the count goes up by one (like a game of hockey). If someone could give me some idea as to where I should start it would be greatly appreciated.
    My thanks

    This is alwyas [a good place to start|http://java.sun.com/developer/onlineTraining/] when you don't have a clue what's going on, and here if you need specifics on MouseListener. And to get movement, then you'll probably want to look here.
    Once you have some code and specific questions, literally almost everyone on here will be willing to help you further along the way. When you post code, please use code tags.

  • Beginner needs Java applet Help!!!

    I would be greatful if someone could answer any of the questions below following the description, thank you:
    Description:
    There are 3 textFields, 3buttons(add,delete,display), and 1 textArea on my applet.
    User types their "name" in the first textField(called tField1)
    User types their "surnname" in the second textField(called tField2)
    User Types their "Town" in the Third textField(called tField3)
    User presses add button to add details to an array of type "member".
    User presses display to view all members(elements of the array) in the TextArea.
    User adds details to textFields and presses the delete button to delete that member.
    member.class:
    Has constructors, individual set and get methods and private attributes name,surname + address plus a toString method.
    Code Behind the ADD button i.e. in the VOID ADD_ACTIONTIONPERFORMED(ACTION EVENT) method:
    Q1.How do i create an array of type member?
    Is it: MEMBER X[] = NEW MEMBER[100]; If so Where does this statement go?
    Q2.How do i allow the user to keep adding more members every time the add button is pressed?
    Code Behind the DISPLAY button i.e. in the VOID DISPLAY_ACTIONTIONPERFORMED(ACTION EVENT) method:
    Q3. How do i get member array elements displayed into the Textfield?
    Code Behind the DELETE button i.e. in the VOID DELETE_ACTIONTIONPERFORMED(ACTION EVENT) method:
    Q4. Deleting user selected elements?
    thanks for your time

    Q1.How do i create an array of type member?
    Is it: MEMBER X[] = NEW MEMBER[100]; Not unless MEMBER is final, which would be inappropriate here + I'd advise the word 'new' though not 'NEW'.
    If so Where does this statement go?In your source code file
    Q2.How do i allow the user to keep adding more members
    every time the add button is pressed?By having source code that creates the conditions for this
    >
    Code Behind the DISPLAY button i.e. in the VOID
    DISPLAY_ACTIONTIONPERFORMED(ACTION EVENT) method:Again these are not final methods, they are overrided methods
    Q3. How do i get member array elements displayed into
    the Textfield?This goes back to the thorny issue of writing code again. It's generally quite hard to do this sort of thing without it.
    >
    Code Behind the DELETE button i.e. in the VOID
    DELETE_ACTIONTIONPERFORMED(ACTION EVENT) method:Again, this is overriden, so final declarations are not permitted
    Q4. Deleting user selected elements?See above, re: source code.
    thanks for your time Welcome, we're here to help

  • Java Applet IIOP Call-In with Release 3C--How do we speed updownload ti

    We have successfully implemented a simple Java Applet that calls into
    Forte Services via IIOP. However, the duration of the download time for
    Applet and its required class files is UNACCEPTABLE in a typical
    INTERNET environment where 28.8K modems and multiple hops around the net
    are not uncommon. We dialed into our network at 28.8K (but no hopping),
    and found that download times varied from 1.5 - 2.0 minutes. This is
    unacceptable, even by internet standards. We have been using the
    Visigenic Visibroker product as the ORB.
    After doing some investigation, we've come up with several ideas to
    speed up download time:
    1. Figure out how to use the Visigenic components (CORBA/IIOP class
    files) that come bundled with the latest version of the Netscape
    Navigator browser, so that they don't have to be downloaded
    2. Figure out how to use ZIP files. Here's what I've read: "Since the
    introduction of Netscape Navigator 3.0, you can specify an uncompressed
    .zip file as an addition to the code base of your application. By
    specifying a ZIP file, the browser will load your applet's classes from
    a specified ZIP file before it searches the code base. This ZIP can
    improve applet download time by reducing the number of HTTP connections
    required to fetch applet code. As an added benefit, Netscape caches the
    single ZIP file so that it will not reload your applet unless the date
    of the ZIP file has changed."
    3. Figure out how to use JAR files. Here's what I've read: "JAR
    stands for Java archive. It's a file format based on the popular ZIP
    file format and is used for aggregating many files into one. Although
    JAR can be used as a general archiving tool, the primary motivation for
    its development was so that Java applets and their requisite components
    can be downloaded to a browser in a single HTTP transaction, rather than
    opening a new connection for each piece. This greatly improves the
    speed with which an applet can be loaded onto a web page and begin
    functioning. The JAR format also supports compression, which reduces the
    size of the file and improves download time still further."
    Unfortunately, we've been unable to get any of these approaches to work.
    Has any one used these or other approaches to speed up applet download
    time? Or, does anyone know of consulting firms that specialize in this
    sort of thing?
    Thanks in advance for your help.
    Mike Nelson, Project Leader
    Metrix, Inc.
    [email protected]
    414-798-8560 x1157

    We have successfully implemented a simple Java Applet that calls into
    Forte Services via IIOP. However, the duration of the download time for
    Applet and its required class files is UNACCEPTABLE in a typical
    INTERNET environment where 28.8K modems and multiple hops around the net
    are not uncommon. We dialed into our network at 28.8K (but no hopping),
    and found that download times varied from 1.5 - 2.0 minutes. This is
    unacceptable, even by internet standards. We have been using the
    Visigenic Visibroker product as the ORB.
    After doing some investigation, we've come up with several ideas to
    speed up download time:
    1. Figure out how to use the Visigenic components (CORBA/IIOP class
    files) that come bundled with the latest version of the Netscape
    Navigator browser, so that they don't have to be downloaded
    2. Figure out how to use ZIP files. Here's what I've read: "Since the
    introduction of Netscape Navigator 3.0, you can specify an uncompressed
    .zip file as an addition to the code base of your application. By
    specifying a ZIP file, the browser will load your applet's classes from
    a specified ZIP file before it searches the code base. This ZIP can
    improve applet download time by reducing the number of HTTP connections
    required to fetch applet code. As an added benefit, Netscape caches the
    single ZIP file so that it will not reload your applet unless the date
    of the ZIP file has changed."
    3. Figure out how to use JAR files. Here's what I've read: "JAR
    stands for Java archive. It's a file format based on the popular ZIP
    file format and is used for aggregating many files into one. Although
    JAR can be used as a general archiving tool, the primary motivation for
    its development was so that Java applets and their requisite components
    can be downloaded to a browser in a single HTTP transaction, rather than
    opening a new connection for each piece. This greatly improves the
    speed with which an applet can be loaded onto a web page and begin
    functioning. The JAR format also supports compression, which reduces the
    size of the file and improves download time still further."
    Unfortunately, we've been unable to get any of these approaches to work.
    Has any one used these or other approaches to speed up applet download
    time? Or, does anyone know of consulting firms that specialize in this
    sort of thing?
    Thanks in advance for your help.
    Mike Nelson, Project Leader
    Metrix, Inc.
    [email protected]
    414-798-8560 x1157

  • Re: [Fwd: Java Applet IIOP Call-In with Release 3C--How dowe speed up d

    Hi Michael,
    We have done exactly what you describe and have avoided the slow applet
    download times. Although it can be a bit tricky, it is possible to use
    the ORB bundled inside the Netscape 4.0 browser (Visibroker for Java by
    Visigenic). Most of the code should follow Netscape's examples (on
    http://developer.netscape.com)--just remember to initialize the ORB by
    passing a reference to the current applet in orb_init() (so that you
    invoke something like orb_init(this) [assuming you are extending
    java.applet.Applet]). Pulling up the Java console within your web
    browser should help debug quite a bit (a lot of debug messages will get
    printed there the ORB is having problems).
    Netscape has just implemented the applet caching schemes you describe,
    so it probably shouldn't matter too much if you use another vendor's
    ORB (we've done this with Iona's OrbixWeb). If you use ZIP files, they
    have to be uncompressed, and I don't think that the browser will cache
    them between browser sessions. Netscape 4.0 does seem to handle
    compressed JAR files just fine and it does indeed cache them between
    browser sessions. I'd go with the JAR format anyway since the ZIP
    bundling was just a workaround until Sun got their act together in the
    1.1 JDK.
    By the way, you also might want to take advantage of the code-signing
    and capabilities APIs of Netscape if you are going to invoke methods on
    objects not resident on your web server. Otherwise, you will probably
    run into the (in)famous browser applet security restrictions and you may
    have other problems doing things like callbacks from Forte, etc.
    If you want more detail on how it works, let me know and I can post some
    examples.
    Oh, one last thing: we are a consulting firm specializing in these kinds
    of things :)
    Bill
    Subject: Java Applet IIOP Call-In with Release 3C--How do we speed up download time.
    Date: Wed, 2 Jul 1997 09:10:31 -0500
    From: Michael Nelson <[email protected]>
    To: "'[email protected]'" <[email protected]>
    We have successfully implemented a simple Java Applet that calls into
    Forte Services via IIOP. However, the duration of the download time
    for
    Applet and its required class files is UNACCEPTABLE in a typical
    INTERNET environment where 28.8K modems and multiple hops around the
    net
    are not uncommon. We dialed into our network at 28.8K (but no
    hopping),
    and found that download times varied from 1.5 - 2.0 minutes. This is
    unacceptable, even by internet standards. We have been using the
    Visigenic Visibroker product as the ORB.
    After doing some investigation, we've come up with several ideas to
    speed up download time:
    1. Figure out how to use the Visigenic components (CORBA/IIOP class
    files) that come bundled with the latest version of the Netscape
    Navigator browser, so that they don't have to be downloaded
    2. Figure out how to use ZIP files. Here's what I've read: "Since
    the
    introduction of Netscape Navigator 3.0, you can specify an
    uncompressed
    .zip file as an addition to the code base of your application. By
    specifying a ZIP file, the browser will load your applet's classes
    from
    a specified ZIP file before it searches the code base. This ZIP can
    improve applet download time by reducing the number of HTTP
    connections
    required to fetch applet code. As an added benefit, Netscape caches
    the
    single ZIP file so that it will not reload your applet unless the date
    of the ZIP file has changed."
    3. Figure out how to use JAR files. Here's what I've read: "JAR
    stands for Java archive. It's a file format based on the popular ZIP
    file format and is used for aggregating many files into one. Although
    JAR can be used as a general archiving tool, the primary motivation
    for
    its development was so that Java applets and their requisite
    components
    can be downloaded to a browser in a single HTTP transaction, rather
    than
    opening a new connection for each piece. This greatly improves the
    speed with which an applet can be loaded onto a web page and begin
    functioning. The JAR format also supports compression, which reduces
    the
    size of the file and improves download time still further."
    Unfortunately, we've been unable to get any of these approaches to
    work.
    Has any one used these or other approaches to speed up applet
    download
    time? Or, does anyone know of consulting firms that specialize in
    this
    sort of thing?
    Thanks in advance for your help.
    Mike Nelson, Project Leader
    Metrix, Inc.
    [email protected]
    414-798-8560 x1157
    Billy L. Williams, Jr. | email: [email protected]
    Sage Solutions, Inc. | Tel: (415) 392-7243 (x506) Fax: (415) 391-3899
    | Pager: (415) 605-1791 (page me if urgent)

    Hi Michael,
    We have done exactly what you describe and have avoided the slow applet
    download times. Although it can be a bit tricky, it is possible to use
    the ORB bundled inside the Netscape 4.0 browser (Visibroker for Java by
    Visigenic). Most of the code should follow Netscape's examples (on
    http://developer.netscape.com)--just remember to initialize the ORB by
    passing a reference to the current applet in orb_init() (so that you
    invoke something like orb_init(this) [assuming you are extending
    java.applet.Applet]). Pulling up the Java console within your web
    browser should help debug quite a bit (a lot of debug messages will get
    printed there the ORB is having problems).
    Netscape has just implemented the applet caching schemes you describe,
    so it probably shouldn't matter too much if you use another vendor's
    ORB (we've done this with Iona's OrbixWeb). If you use ZIP files, they
    have to be uncompressed, and I don't think that the browser will cache
    them between browser sessions. Netscape 4.0 does seem to handle
    compressed JAR files just fine and it does indeed cache them between
    browser sessions. I'd go with the JAR format anyway since the ZIP
    bundling was just a workaround until Sun got their act together in the
    1.1 JDK.
    By the way, you also might want to take advantage of the code-signing
    and capabilities APIs of Netscape if you are going to invoke methods on
    objects not resident on your web server. Otherwise, you will probably
    run into the (in)famous browser applet security restrictions and you may
    have other problems doing things like callbacks from Forte, etc.
    If you want more detail on how it works, let me know and I can post some
    examples.
    Oh, one last thing: we are a consulting firm specializing in these kinds
    of things :)
    Bill
    Subject: Java Applet IIOP Call-In with Release 3C--How do we speed up download time.
    Date: Wed, 2 Jul 1997 09:10:31 -0500
    From: Michael Nelson <[email protected]>
    To: "'[email protected]'" <[email protected]>
    We have successfully implemented a simple Java Applet that calls into
    Forte Services via IIOP. However, the duration of the download time
    for
    Applet and its required class files is UNACCEPTABLE in a typical
    INTERNET environment where 28.8K modems and multiple hops around the
    net
    are not uncommon. We dialed into our network at 28.8K (but no
    hopping),
    and found that download times varied from 1.5 - 2.0 minutes. This is
    unacceptable, even by internet standards. We have been using the
    Visigenic Visibroker product as the ORB.
    After doing some investigation, we've come up with several ideas to
    speed up download time:
    1. Figure out how to use the Visigenic components (CORBA/IIOP class
    files) that come bundled with the latest version of the Netscape
    Navigator browser, so that they don't have to be downloaded
    2. Figure out how to use ZIP files. Here's what I've read: "Since
    the
    introduction of Netscape Navigator 3.0, you can specify an
    uncompressed
    .zip file as an addition to the code base of your application. By
    specifying a ZIP file, the browser will load your applet's classes
    from
    a specified ZIP file before it searches the code base. This ZIP can
    improve applet download time by reducing the number of HTTP
    connections
    required to fetch applet code. As an added benefit, Netscape caches
    the
    single ZIP file so that it will not reload your applet unless the date
    of the ZIP file has changed."
    3. Figure out how to use JAR files. Here's what I've read: "JAR
    stands for Java archive. It's a file format based on the popular ZIP
    file format and is used for aggregating many files into one. Although
    JAR can be used as a general archiving tool, the primary motivation
    for
    its development was so that Java applets and their requisite
    components
    can be downloaded to a browser in a single HTTP transaction, rather
    than
    opening a new connection for each piece. This greatly improves the
    speed with which an applet can be loaded onto a web page and begin
    functioning. The JAR format also supports compression, which reduces
    the
    size of the file and improves download time still further."
    Unfortunately, we've been unable to get any of these approaches to
    work.
    Has any one used these or other approaches to speed up applet
    download
    time? Or, does anyone know of consulting firms that specialize in
    this
    sort of thing?
    Thanks in advance for your help.
    Mike Nelson, Project Leader
    Metrix, Inc.
    [email protected]
    414-798-8560 x1157
    Billy L. Williams, Jr. | email: [email protected]
    Sage Solutions, Inc. | Tel: (415) 392-7243 (x506) Fax: (415) 391-3899
    | Pager: (415) 605-1791 (page me if urgent)

  • Java Applet

    Very simple question here. Im very frustrated with this simple java applet right now. Will this applet at this URL display for anyone?? http://www.everythingsgood.com/Computer/IntegerCalculatorGUI.html I have been reading Java applet tutorial sites for the past 6 hours and all of them tell me the same thing. All I need is this tag
    <APPLET height="150" alt="Browser has Java disabled" hspace="150" width="450" code="IntegerCalculatorGUI.class"></applet>
    along with having the .html file in the same directory as the java.class. I have done everything excalty as described by many people and this thing still pulls up a empty box with a red X in it. What am I doing wrong? Anyone have any ideas. This is really frustrating since im 99% positive the html tag is perfect. If you want to view the calculator applet code here it is http://www.everythingsgood.com/Computer/classes.rar I have also tried to use a .jar but with no effect as well.
    Message was edited by:
    venture
    null

    Java Plug-in 1.5.0_11
    Using JRE version 1.5.0_11 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Jake.VENTURE
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Media Fully Loaded
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    load: class IntegerCalculatorGUI.class not found.
    java.lang.ClassNotFoundException: IntegerCalculatorGUI.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.FileNotFoundException: C:\Documents and Settings\Jake.VENTURE\Application Data\Ipswitch\WS_FTP\Storage\IntegerCalculatorGUI\class.class (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassCastException: IntegerCalculatorPanel
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    load: IntegerCalculator.class can't be instantiated.
    java.lang.InstantiationException: IntegerCalculator
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.ClassCastException: IntegerCalculatorGUI
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Im really not sure what to make of all of it.

  • Compiling Java Applets

    Hi!
    I've had some trouble running Java Applets on my server. After some debugging I have found that it maters how and/or where they are compiled.
    I have taken a simple HelloWorldApplet and compiled on my server. Then when I try to access it from a client computer all I get is a grey box with no error message.
    I then found an applet at the Java home page where it was possible to download the .CLASS file. When I copied this file to my server it works just fine.
    So my question is: Should not a simple applet work, just because it's compiled with the latest Java Edition??
    The thing is though, when I check the box under Tools > Internet Options > Advanced, Use Java 2 v1.4.1 for <applet> every applet work just fine. But shoulden't a simple Java Applet run without this option?
    I run a MS IIS5 server and use MS IE as a browser.
    Please help me.
    /Fredrik

    Should not a simple applet work, just because it's compiled with the latest Java Edition??Don't need to compile/recompile using the latest JDK since each version is fully compatible with old versions but for advanced ones must to use "target" parameter. As example, if one applet is using regular expression API, formerly Regex API, must to compile this way:
    javac -target 1.4 yourSource.java .
    For simple applets as mentioned in your post, formerly AWT applets, don't need special care, they will work fine in any JVM, any browser any platform since this is the most primitive JVM (1.1) but in some OS the vendor supressed JVM..M$, so you must to use Java plug-in. It just supplies a Java virtual machine to run your applets/applications and in this sense becames the "native" VM. This is the better choice at all that warrants the best performance among VM's.
    At this moment you can be sure your OS was deployed without Java support of course and there aren't server constraints (applets run in client side) so maintain Sun's JVM as default and there will be no presentation faults. Moreover M$ JVM has a dangerous security bug and also is obsolete version.
    Regards.

Maybe you are looking for

  • IPhone Calendar Events ALWAYS have sound even when event on the Mac does not.  How do I turn sound OFF on these events?

    I make a new event, I set the Alert = Message (NOT "message with sound").  When event happens on the iMac there is no sound.  Same event, syched to the iPhone, has sound. I have deleted events, recreated, synched.  Absolutly certain Alert is "message

  • How can I successfully download Photoshop Elements 7.0?

    Sorry if there is a question like this already. I got a new laptop today. I downloaded all my software and transferred my files. However I have been unsuccessful to download Photoshop Elements 7. I have the disk and I have it installed in my old lapt

  • HT1766 when will support on back up and restore on iTunes 11 be updates here?

    the iOS: How to back up http://support.apple.com/kb/HT1766  still shows screenshots of the old iTunes version. when is apple going to update that?

  • Time & Date

    when Importing video footage I require the Time Date recorded by the camera. Using firewire to my G5 the Time Date is lost and i have to import via a Canopus analogue to DV converter. Is there a way to import via firewire and retain the time Date sta

  • File comments

    For a long time, I've known that UNIX has support for some kind of comment field in its filesystems, and every now and then I get a little confirmation from things like eg a webserver that has an additional "comment" field running alongside the listi