Microsoft KB Archive/183411

From BetaArchive Wiki
Knowledge Base


Cannot Use Java Controls on Web Pages

Article ID: 183411

Article Last Modified on 10/23/2007



APPLIES TO

  • Microsoft Internet Explorer 4.01 128-Bit Edition



This article was previously published under Q183411

SYMPTOMS

When you connect to a Web page that uses Java controls, you may not be able to view or use Java programs. You may also see various script error messages.

CAUSE

This behavior can occur if the Java controls in Internet Explorer are damaged.

RESOLUTION

To resolve this issue, determine if any Java control is damaged. Remove any Java control that is damaged, extract the control from the cabinet (.cab) file that contain the control, and then register the control. The following Java controls are listed in the Windows\Downloaded Program Files folder:

  • Internet Explorer Classes for Java (contained in the Iejava.cab file)
  • DirectAnimation Java Classes (contained in the Dajava.cab file)
  • Microsoft XML Parser for Java (contained in the Xmldso.cab file for Internet Explorer 4.0, or the Xmldso4.cab file for Internet Explorer 4.01)
  • Win32 Classes (contained in the Win32ie4.cab file)
  1. Determine if any control is damaged. To do so, follow these steps:

    1. Click Start, point to Programs, and then click Windows Explorer.
    2. Open the <windows>\Downloaded Program Files folder, where <windows> is the name of your Windows folder.
    3. On the View menu, click Details.

    For each of the files listed above, note any files that have a Damaged status. If any file has a Damaged status, continue with step 2.

    If no file is listed as damaged, perform other Java troubleshooting steps.
  2. Remove each damaged file. To do so, click a file, and then click Remove Program File on the File menu. Repeat for each damaged file.
  3. Place the .cab file or files that contain the Java controls in a temporary folder. To do so, follow these steps:

    1. Click Start, point to Programs, and then click MS-DOS Prompt.
    2. If you installed Internet Explorer from CD-ROM, place your Internet Explorer CD-ROM in your CD-ROM drive, and then type each of the following lines, pressing ENTER after each line

      <x>:
      md\javatemp
      <z>:
      cd\win95\eng\packages
      copy <somejava>.cab <x:>\javatemp

      where <x> is the hard disk on which you want to place temporary files, <somejava>.cab is the .cab file that contains the Java control file, and <z> is the drive letter for your CD-ROM drive. See the list of corresponding .cab files for Java controls at the end of step 3.
    3. If you downloaded Internet Explorer from the Web, type each of the following lines, pressing ENTER after each line

      <v>:
      cd\<ietemp>
      copy <somejava>.cab <z>:\javatemp

      where <v> is the source drive for the Internet Explorer Setup files, <somejava>.cab is the .cab file that contains the Java control file, and <z> is the hard disk on which you want to place temporary files.

      Note that if you chose to remove the Internet Explorer 4.0 Setup files, you are unable to complete step B or C until you download these files from the following Microsoft Web site:

      The following table lists each Java control and its corresponding .cab file.

            Java control                         Cabinet file
            -------------------------------------------------
            Internet Explorer Classes for Java   Iejava.cab
            DirectAnimation Java Classes         Axa.cab
            Microsoft XML Parser for Java        Javi386.cab
            Win32 Classes                        Javi386.cab
  4. Extract each required Java control file. To do so, follow these steps:

    1. Click Start, point to Programs, and then click MS-DOS Prompt.
    2. Type each of the following lines, pressing ENTER after each line

      <x>:
      cd javatemp
      extract <source>.cab /e <javactrl>.cab

      where <x> is the hard disk containing the Javatemp folder, <source>.cab is the source .cab file for the Java control file, and <javactrl>.cab is the Java control file.

      For example, to extract the DirectAnimation Java Classes Java control file, type the following lines from the MS-DOS Prompt, pressing ENTER after each line:

      c:
      cd\javatemp
      extract axa.cab /e dajava.cab

      For additional information about how to extract files from a cab file, see the following article in the Microsoft Knowledge Base:

      129605 How to Extract Original Compressed Windows Files

    3. The Internet Explorer Classes for Java control is not contained in a .cab file, so you can simply copy it to the Windows\System folder. Type each of the following lines, pressing ENTER after each line

      <drive>:
      cd\<windows>\system
      attrib -r iejava.cab
      ren iejava.cab iejava.old
      <z>:
      cd\<sourcedir>
      copy iejava.cab <drive>:\<windows>\system

      where <drive> is the drive letter of the hard disk containing your Windows folder, <windows> is the Windows folder, <z> is the drive letter for the hard disk or CD-ROM containing the Iejava.cab file, and <sourcedir> is the source folder for the Iejava.cab file.

      For example, if you installed Internet Explorer from the Internet Explorer CD-ROM, your CD-ROM drive is drive E, and Windows is installed on drive C, type each of the following lines, pressing ENTER after each line:

      c:
      cd\windows\system
      attrib -r iejava.cab
      ren iejava.cab iejava.old
      e:
      cd\win95\eng\packages
      copy iejava.cab c:\windows\system

  5. Register the Java control files. To do so, follow these steps:

    1. Click Start, point to Programs, and then click MS-DOS Prompt.
    2. Type the appropriate line, depending on the Java control you are registering.

      NOTE: These lines are wrapped for readability purposes. Type each line as a single line when you follow these steps.

      • For the Internet Classes for Java control, type the following line, and then press ENTER:

        start rundll32 c:\windows\system\msjava.dll,JavaPkgMgr_Install c:\javatemp\iejava.cab,0,0,0,0,0,0

      • For the DirectAnimation Java Classes control, type the following line, and then press ENTER:

        start rundll32 c:\windows\system\msjava.dll,JavaPkgMgr_Install c:\javatemp\dajava.cab,0,0,0,0,0,0

      • For the Microsoft XML Parser for Java for Internet Explorer 4.0 control, type the following line, and then press ENTER:

        start rundll32 c:\windows\system\msjava.dll,JavaPkgMgr_Install c:\javatemp\xmldso.cab,0,0,0,0,0,0

      • For the Microsoft XML Parser for Java for Internet Explorer 4.01, control, type the following line, and then press ENTER:

        start rundll32 c:\windows\system\msjava.dll,JavaPkgMgr_Install c:\javatemp\xmldso4.cab,0,0,0,0,0,0

      • For the Win32 Classes for Internet Explorer 4.01 control, type the following line, and then press ENTER:

        start rundll32 c:\windows\system\msjava.dll,JavaPkgMgr_Install c:\javatemp\win32ie4.cab,0,0,0,0,0,0

    3. View the contents of the Windows\Downloaded Program Files folder to verify that the Internet Explorer Java controls are present.

When you attempt to register the Java control files, you may receive the following error message:

Unable to install Java packages from c:\javatemp\iejava.cab.
Unknown HRESULT: (800b010bh)

This error message can occur if the Wintrust.dll file is missing or damaged. To resolve this behavior, extract a new copy of the Wintrust.dll file from the Ie4_s5.cab cabinet file to the Windows\System folder.

For additional information about how to use the Extract tool included with Windows 95, please see the following article in the Microsoft Knowledge Base:

129605 How to Extract Original Compressed Windows Files


For information about how to interpret HResult error codes, please see the following article in the Microsoft Knowledge Base:

178081 Description of the Active Setup Log.txt File


Keywords: kbprb KB183411