Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5017973

Unsupported OBJECT tag for JRE 1.3.1 and JRE 1.4.2

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2, 1.4.2_04
    • deploy
    • x86
    • windows_nt



      Name: gm110360 Date: 03/22/2004


      A DESCRIPTION OF THE REQUEST :
      Can not run in the same internet explorer two pages running a different JRE version (1.3.1_02 and 1.4.2_04 for instance)

      If so a "register failk" message appears before a "Runtime error!" in IExplorer.

      The same applies if first JRE 1.4.2 and then JRE 1.3.1.

      The applet for 1.3.1_02 is run trhough OBJECT tag as :
      <OBJECT classid="clsid:CAFEEFAC-0013-0001-0002-ABCDEFFEDCBA"
          width="400" height="100" align="baseline"
          codebase="">
          <PARAM name="code" value="JavaVersionDisplayApplet">
          <PARAM name="codebase" value=".">
          <PARAM name="type" value="application/x-java-applet;jpi-version=1.3.1">
          <PARAM name="scriptable" value="true">
              This applet has been designed to work with java plug-in version 1.3.1
      </OBJECT>


      JUSTIFICATION :
      1) to conform to the standards
      2) to keep the ability for application that needs 1.3.1 (and that can not run 1.4.2) to run.
      3) because MSJVM and JRE 1.4 works fine together so why JRE 1.3 and JRE 1.4 should not



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Have two pages one with a standard applet one with an applet running through OBJECT tag pointed to version 1.3.1

      ACTUAL -
      Can not run in the same internet explorer two pages running a different JRE version (1.3.1_02 and 1.4.2_04 for instance)

      If so a "register failk" message appears before a "Runtime error!" in IExplorer.

      The same applies if first JRE 1.4.2 and then JRE 1.3.1.

      The applet for 1.3.1_02 is run trhough OBJECT tag as :
      <OBJECT classid="clsid:CAFEEFAC-0013-0001-0002-ABCDEFFEDCBA"
          width="400" height="100" align="baseline"
          codebase="">
          <PARAM name="code" value="JavaVersionDisplayApplet">
          <PARAM name="codebase" value=".">
          <PARAM name="type" value="application/x-java-applet;jpi-version=1.3.1">
          <PARAM name="scriptable" value="true">
              This applet has been designed to work with java plug-in version 1.3.1
      </OBJECT>


      ---------- BEGIN SOURCE ----------
      ====== the code to call the specific 1.3.1 applet ======
      <html>
      <head><title>Version plug-in applet</title>

      </head>

      <body>
      <h1>Applet calling version 1.3.1_02 JRE plug-in</h1>
      <hr>

      <OBJECT classid="clsid:CAFEEFAC-0013-0001-0002-ABCDEFFEDCBA"
          width="400" height="100" align="baseline"
          codebase="">
          <PARAM name="code" value="JavaVersionDisplayApplet">
          <PARAM name="codebase" value=".">
          <PARAM name="type" value="application/x-java-applet;jpi-version=1.3.1">
          <PARAM name="scriptable" value="true">
              This applet has been designed to work with java plug-in version 1.3.1
      </OBJECT>

      ====== same java code for both applet ======

      import java.applet.*;
       import java.awt.*;
       public class JavaVersionDisplayApplet extends Applet
       { private Label m_labVersionVendor;
         public JavaVersionDisplayApplet() //constructor
         { Color colFrameBackground = Color.pink;
           this.setBackground(colFrameBackground);
           m_labVersionVendor = new Label (" Java Version: " +
                                          System.getProperty("java.version")+
                                 " from "+System.getProperty("java.vendor"));
           this.add(m_labVersionVendor);
         }
       }


      ====== standard applet call =====
      <html>
      <head><title>Version plug-in applet</title>

      </head>

      <body>
      <h1>Find out which Virtual Machine is called by default</h1>
      <hr>

      <applet code="VersionDisplayApplet.class" codebase="." width="400" height="100">
      </applet>


      </body>
      </html>

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Close Internet explorer before call the applet that point to JRE 1.3.1
      And close internet explorer after the use of this applet
      (Incident Review ID: 243013)
      ======================================================================

            Unassigned Unassigned
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: