1 Reply Latest reply on Oct 16, 2009 7:14 PM by 843802

    JDK 1.4.2_10; problem with applet/classpath/OBJECT tag

      I'm supporting an applet that needs to run in JDK 1.4.2_10 in order to work. (I don't own the code, so I can't fix the issue)

      I'd like to force that particular applet to run under JDK 1.4.2_10, but allow other applets to run on the current default JVM.

      I'm trying to do this by using the JDK's htmlconverter.exe utility to force the use of JDK 1.4.2_10. That part is working as expected, but I'm experiencing a side effect.

      The problem is that, when I use the OBJECT tag instead of the APPLET tag, the browser attempts to download the class with this URL


      instead of this URL


      The second URL works; the first does not. When I use the APPLET tag, it generates the second URL and downloads the class successfully.

      I'd like to a) use the OBJECT tag. b) get it to use the correct URL to download the Applet.class file. What do I need to do to make this happen?


      Tom Valesky
        • 1. Re: JDK 1.4.2_10; problem with applet/classpath/OBJECT tag
          Here's the exception I'm getting (slightly sanitized):

          Java Plug-in 1.4.2_10
          Using JRE version 1.4.2_10 Java HotSpot(TM) Client VM
          User home directory = C:\Documents and Settings\tvalesky
          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

          load: class appls/DOLARS/user/Applet.class not found.

          java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class

               at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)

               at java.lang.ClassLoader.loadClass(Unknown Source)

               at java.lang.ClassLoader.loadClass(Unknown Source)

               at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)

               at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)

               at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)

               at java.lang.Thread.run(Unknown Source)

          Caused by: java.io.IOException: open HTTP connection failed:http://hostname.com/DOLARS.testing/dolars.testbed/classes/appls%2fDOLARS%2fuser%2fApplet%2fclass.class

               at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)

               at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)

               at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)

               at java.security.AccessController.doPrivileged(Native Method)

               ... 7 more

          Exception: java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class