4 Replies Latest reply: Jul 21, 2011 4:39 PM by 876806 RSS

    Applet wont work in IE when Next Generation Plugin is turned off

    876806
      I made a simple applet that displays the version of java a user is running. It works fine in IE6 , 7 , and 8 when the Next Generation Plugin is on, but when it is turned off a white box shows up where the applet should be. It works fine in firefox 3.6, 4, 5 no matter what. I need it to work without the next generation plugin as it causes conflicts with other software my users have. Heres the error message

      ERROR: unexpectedly couldn't get the codebase

      any ideas would be great.
        • 1. Re: Applet wont work in IE when Next Generation Plugin is turned off
          baftos
          Could you post the HTML applet tag plus the exact contents of the Java console?
          • 2. Re: Applet wont work in IE when Next Generation Plugin is turned off
            876806
            <applet code="JavaVersionDisplayApplet.class" height="60" width="120"></applet>

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

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

            ERROR: unexpectedly couldn't get the codebase
            • 3. Re: Applet wont work in IE when Next Generation Plugin is turned off
              baftos
              A few suggestions:
              - Try to specify a codebase in the applet tag
              - Try to obtain a console trace with tracing level 5 (see the last line of help displayed in the console by Java)
              - Give us access to the applet
              - If you are using a file URL, try HTTP to see what happens
              - Try to remove the suffix ".class" from your applet tag. It is not legal, just tolerated.
              • 4. Re: Applet wont work in IE when Next Generation Plugin is turned off
                876806
                Found out that my problem had to do with Javascript(MooTools 1.3.2) was the cause of the conflicts with the java applet. The problem is because a variable named this.Document in javascript causes some kind of problem with java. I have no idea why, but I read a post "Java Applet won't load when a JavaScript variable "this.Document" is used. " and it described the problem. I moved to MooTools 1.2.5 which doesn't have that variable and it works now. Thanks for the help