Microsoft KB Archive/831427

= &quot;WJView error Could not execute main&quot; error message when you start your Windows XP-based computer =

Article ID: 831427

Article Last Modified on 6/23/2005

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows XP Tablet PC Edition

-





Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you start your Microsoft Windows XP-based computer, you may receive the following error message:

WJView error

Could not execute main. The system cannot find the file specified.



CAUSE
This issue may occur if one or more of the following conditions are true:
 * Windows XP is configured to run a Java program on startup through the WJView program.

The Wjview.exe (WJView) program is a tool that is used to view window-based Java programs from the command line. Then the WJView program spawns a separate window process. The WJView program provides an environment where your window-based programs can run. Additionally, the WJView program supports both debug and retail versions of your programs.
 * The Couponica program is installed on your computer.



WORKAROUND
To work around this issue, use one of the following workarounds that is appropriate for your situation.

Workaround 1: Windows XP is configured to run a Java program on startup through the WJView program
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To work around this issue, remove the WJView program from the System Configuration Utility, and then remove the programs registry entries. To do this, follow these steps:  Click Start, and then click Run. Type msconfig.exe, and then click OK. Click the Startup tab. Click to clear all WJView.exe check boxes that are in the Startup list. Click OK. Click Start, click Run, type regedit, and then click OK.</li> Locate and then click the following registry subkey:

 

</li> Click File, click Export, select a location to save the file, name the file Run1, and then click Save.</li> Look through the values under Run, and then click to select those values that contain a reference to the WJView.exe program.</li> On the Edit menu, click Delete.</li> Locate and then click the following registry subkey:

 

</li> Click File, click Export, select a location to save the file, name the file Run2, and then click Save.</li> Look through the values under Run, and then click to select those values that contain a reference to the WJView.exe program.</li> On the Edit menu, click Delete for each value.</li> Quit Registry Editor.</li></ol>

Workaround 2: The Couponica program is installed on your computer
To work around this issue, use one of the following methods.

Method 1: Use Msconfig
To use Msconfig to work around this issue, follow these steps:
 * 1) Click Start, click Run, in the Open box, type msconfig, and then click OK.
 * 2) On the Startup tab, click to clear the following check boxes:
 * 3) * Couponica
 * 4) * couponsandoffers
 * 5) * websearch
 * 6) Click OK to close the System Configuration Utility dialog box.
 * 7) Restart your computer.

Method 2: Delete the Couponica folders
In Windows Explorer, delete the following Couponica folders:
 * C:\Program Files\Couponica
 * C:\Program Files\Websearch

Keywords: kberrmsg kbjava kbprb KB831427

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.