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



The information in this article 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:
  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

Modification Type:MinorLast Reviewed:6/23/2005
Keywords:kbACWsurvey kberrmsg kbJava kbprb KB831427 kbAudEndUser