Article ID: 831427 - Last Review: June 23, 2005 - Revision: 2.6

"WJView error Could not execute main" error message when you start your Windows XP-based computer

On This Page

Expand all | Collapse all

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

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756  (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows


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:
  1. Click Start, and then click Run.
  2. Type msconfig.exe, and then click OK.
  3. Click the Startup tab.
  4. Click to clear all WJView.exe check boxes that are in the Startup list.
  5. Click OK.
  6. Click Start, click Run, type regedit, and then click OK.
  7. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  8. Click File, click Export, select a location to save the file, name the file Run1, and then click Save.
  9. Look through the values under Run, and then click to select those values that contain a reference to the WJView.exe program.
  10. On the Edit menu, click Delete.
  11. Locate and then click the following registry subkey:
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  12. Click File, click Export, select a location to save the file, name the file Run2, and then click Save.
  13. Look through the values under Run, and then click to select those values that contain a reference to the WJView.exe program.
  14. On the Edit menu, click Delete for each value.
  15. Quit Registry Editor.

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:
    • Couponica
    • couponsandoffers
    • websearch
  3. Click OK to close the System Configuration Utility dialog box.
  4. 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

APPLIES TO
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Tablet PC Edition
Keywords: 
kbacwsurvey kberrmsg kbjava kbprb KB831427
 

Article Translations

 

Related Support Centers