Can't get an applet to load - from my web site

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fullofbeans
    New Member
    • Sep 2008
    • 10

    Can't get an applet to load - from my web site

    This is one of my web sites.
    http://www.metcalfeps. ocdsb.ca/

    I can't get the applet to load. It's a picture of the school and has a ripple effect.

    I have www.java.com listed in the security exceptions. My home machine is vista. The applet won't load in IE or Firefox.
    ideas? It loads on my XP machine using IE at work. I reinstalled java, but still no luck. Ideas?

    applet pool menu notinited is the message (Loading java applet Failed)
    I"ve been fighting this problem for a while with no luck. I'm wondering if it's a codebase issue?
    Code:
    <P><APPLET CODE="PoolMenu.class" CODEBASE="../" WIDTH=519 HEIGHT=198 ALIGN=bottom>
                                  <PARAM NAME=image VALUE="IMAGES/schoolsketch118.jpg">
                               </APPLET></P>
    thanks,
    sorry to oblige you all.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    When I try to load that page I get a root cause of:

    java.lang.Class NotFoundExcepti on: ImageMap

    All you have to do is fix your .jar file and all should be fine. This exception gets
    thrown in a constructor of your applet class.

    kind regards,

    Jos

    Comment

    • fullofbeans
      New Member
      • Sep 2008
      • 10

      #3
      Thanks for the quick response. Tomorrow at work I will check it out from my work machine.- not sure how to fix the .jar file. I only have 3 .class files.

      They are PoolMenu.class Pool.class ImageMap.class

      On one of my other sites http://www.downwindken nels.com/main/aboutus.html

      The applet works no problem regardless of the OS or browser.

      Code:
      <applet code="PoolMenu.class" width="360" height="241">
      <param name="image" value="/images/casey3a.jpg">
      </applet>
      I don't have the applet in a .jar - note: I do not have the codebase listed in this functioning applet.

      sorry for bugging you all with an amateurish ques. like this.

      I truly appreciate all the help.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by fullofbeans
        The applet works no problem regardless of the OS or browser.
        Yep, that one works fine here as well including the ripple effect. Maybe it's a
        firewall problem or simply the absence of a class file?

        kind regards,

        Jos

        Comment

        • fullofbeans
          New Member
          • Sep 2008
          • 10

          #5
          I added the ImageMap.class file today.

          It worked from work on XP and IE no problems without it. I'll try it on Vista when I get home tonight. Any Vista users having success loading the applet now? If that was the issue, weird that it was successful loading on the older OS.

          trying to get it load the ripple applet consistently here
          http://www.metcalfeps. ocdsb.ca/

          my other site has no problems

          http://www.downwindken nels.com/main/aboutus.html

          Wish me luck. I think you may be right that it was the missing .class file. - Looks like I may owe you a coke.

          Thanks again everyone. I run 3 sites, but I"m a total noob when it comes to java. - more of a cut and paster.

          cheers.

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Yup, it works now; it was that missing ImageMap class file.

            kind regards,

            Jos

            Comment

            • fullofbeans
              New Member
              • Sep 2008
              • 10

              #7
              You rock!

              Thanks again for all the help. I've been meaning to fix this for quite some time now. I thought it was a Vista issue originally. I teach gr. 7 and I'm going to share the entire process that we went through in Computers class to show them the benefits of collaboration and of such forums.

              cheers

              Comment

              • JosAH
                Recognized Expert MVP
                • Mar 2007
                • 11453

                #8
                Originally posted by fullofbeans
                You rock!

                Thanks again for all the help. I've been meaning to fix this for quite some time now. I thought it was a Vista issue originally. I teach gr. 7 and I'm going to share the entire process that we went through in Computers class to show them the benefits of collaboration and of such forums.

                cheers
                Well, I didn't do much actually; I simply tried to load your URLs and told you
                what I saw ;-) I'm glad you fixed it. Did you write that ripple effect yourself or
                did you find the code somewhere on the net?

                kind regards,

                Jos

                Comment

                • fullofbeans
                  New Member
                  • Sep 2008
                  • 10

                  #9
                  - Your encouragement helped. I didn't write the applet. I can't for the life of me remember where I got the ripple applet from. I remember that I had tried 3 or 4 similar applets before I decided on one that I liked.

                  tx again.

                  Comment

                  • fullofbeans
                    New Member
                    • Sep 2008
                    • 10

                    #10
                    ah heck.
                    I'm at home now. The applet now loads in IE. (I'm using Vista.) but it still won't load in Firefox. - any ideas? Can someone tell me if they were able to get the applet load on their machine with Firefox?

                    I'm using the uptodate version. Firefox/3.0.3

                    I've read of some older posts of people having issues with applets not loading in Firefox.

                    Poss. it's truly the browser's incompatibility now? - suggestions?

                    tx again.

                    Comment

                    • fullofbeans
                      New Member
                      • Sep 2008
                      • 10

                      #11
                      Here's the java console message I get....


                      Java Plug-in 1.6.0_07
                      Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
                      User home directory = C:\Users\Me


                      ----------------------------------------------------
                      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>
                      ----------------------------------------------------

                      load: class PoolMenu.class not found.
                      java.lang.Class NotFoundExcepti on: PoolMenu.class
                      at sun.applet.Appl etClassLoader.f indClass(Unknow n Source)
                      at java.lang.Class Loader.loadClas s(Unknown Source)
                      at sun.applet.Appl etClassLoader.l oadClass(Unknow n Source)
                      at java.lang.Class Loader.loadClas s(Unknown Source)
                      at sun.applet.Appl etClassLoader.l oadCode(Unknown Source)
                      at sun.applet.Appl etPanel.createA pplet(Unknown Source)
                      at sun.plugin.Appl etViewer.create Applet(Unknown Source)
                      at sun.applet.Appl etPanel.runLoad er(Unknown Source)
                      at sun.applet.Appl etPanel.run(Unk nown Source)
                      at java.lang.Threa d.run(Unknown Source)

                      - doesn't tell me too much, eh?

                      - i checked the adv. settings for Firefox, yep Java is enabled.
                      I believe I am using the newest and proper Java plugin for the browser.


                      Java Plug-in 1.6.0_07
                      Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM

                      thanks for your time considering my plight everyone.

                      Comment

                      • fullofbeans
                        New Member
                        • Sep 2008
                        • 10

                        #12
                        oh yeah,

                        I'm using Java ver. 6 update 7 if that helps. (Standard Ed. 6)

                        If anyone gets the applet to load in Firefox from this page (it's a ripple effect of my school in black and white) - looks rather neat I think. - the students dig it.

                        http://www.metcalfeps. ocdsb.ca/ please give me a quick shout.

                        tx

                        Comment

                        • fullofbeans
                          New Member
                          • Sep 2008
                          • 10

                          #13
                          I've now pulled that codebase="../" out of the applet tag, like I have loading properly on the dog web site. I hope this helps Firefox run the applet.

                          http://www.downwindken nels.com/main/aboutus.html

                          http://www.metcalfeps. ocdsb.ca/

                          -it's the ripple applet on the school site that didn't want to load in Firefox (FF3) on my home Vista machine.

                          any feedback would be appreciated.

                          I'll have to wait till tonight to check it at home myself.

                          tx

                          Comment

                          • fullofbeans
                            New Member
                            • Sep 2008
                            • 10

                            #14
                            Oh happy days! It now works in both browsers. Interesting challenge, eh?

                            It worked in IE with a .class file missing but not Firefox and having the codebase pointed to the root directory (where the files were) didn't mess up IE but through Firefox for a loop.

                            tx again everyone.

                            take care.

                            Comment

                            Working...