Microsoft KB Archive/234345

= Forms Designer fails or not working correctly =

Article ID: 234345

Article Last Modified on 6/14/2006

-

APPLIES TO


 * Microsoft Visual J++ 6.0 Standard Edition
 * Microsoft Java Virtual Machine

-



This article was previously published under Q234345



SYMPTOMS
By default the Forms Designer in Visual J++ 6.0 translates the class file extending the form class and displays the actual form in the development environment.

There are some cases when this feature breaks and you experience one of the following errors:  The View Designer option is unavailable in a default "Windows Application" in the following areas:

 On the View menu when you select Designer In the Project Explorer Window when the file is selected In the context menu when right-clicking on the file

Microsoft Development Environment java.lang.IllegalAccessError: com/ms/wfc/util/Debug$Switch





CAUSE
This problem is caused by either:  An incorrect version of the COMCAT.dll.</li> An attempt to use the trial version of the product with a more recent virtual machine.</li></ol>

<div class="resolution_section">

RESOLUTION
Resolutions to the earlier two causes are as follows: <ol style="list-style-type: lower-alpha;"> Incorrect version of COMCAT.dll.

There are two version of COMCAT.dll:  Version 4.71: 22 KB (Correct version)</li> Version 5.00: 6 KB (Incorrect version)</li></ul>

If you find the incorrect version of COMCAT.dll on your system, the following steps will correct the problem:

<ol> Unregister COMCAT.dll version 5.0 - on the Start menu, select Run, and type:

regsvr32 /u Comcat.dll </li> Delete or rename the incorrect COMCAT.dll file.</li> Copy COMCAT.dll 4.71 version from the Visual J++ 6.0 CD-ROM to the location you found version 5.0 - [windir]/system[32] directory.

NOTE: You will find the correct version on the CD-ROM in the \Common\Ide\Ide98\Redist directory.</li> Register COMCAT.dll version 4.71 - on the Start menu, select Run, and type:

regsvr32 Comcat.dll </li> In the Control Panel, click Add/Remove Programs, select Microsoft Visual J++ 6.0, and click Reinstall to "repeat the last installation to restore missing files and settings".</li></ol> </li> Using the trial version of Visual J++. You must remove the trial version and install a release version of the product.</li></ol>

<div class="status_section">

STATUS
This behavior of the Forms Designer is by design.

<div class="moreinformation_section">

Steps to Reproduce Behavior

 * 1) Create a new default Windows Application project.
 * 2) Double-click on the Form file.
 * 3) One of the earlier scenarios explained in the "Symptoms section" will occur.

<div class="references_section">