4 Replies Latest reply on Sep 5, 2011 7:35 AM by benoize

    Java applet won't load from Jar file

      Hi all,
      I have a problem which I didn't used to have. I have written an applet which used certain classes stored in directories. It used to work just fine. I recently updated the main class from which the applet starts and since then I get error messages:

      Java Plug-in 1.6.0_26
      Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
      User home directory = /Users/benoize
      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
      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 WiaRekenToolHC.class not found.
      java.lang.ClassNotFoundException: WiaRekenToolHC.class
           at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:252)
           at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250)
           at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180)
           at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
           at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:687)
           at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046)
           at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1498)
           at java.lang.Thread.run(Thread.java:680)
      Exception: java.lang.ClassNotFoundException: WiaRekenToolHC.class

      As you can see it says that it can't find the class WiaRekenToolHC, but it's there in the jar files.
      Here is the link where you can see it:
      The jar files are in the directory HC and Generic.
      If you need more info then let me know!

      Regards, Benoit