"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 SYMPTOMSWhen 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. CAUSEThis 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.
WORKAROUNDTo 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 programWarning 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.
- Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run - Click File, click Export,
select a location to save the file, name the file Run1, and then click
Save.
- Look through the values under Run, and
then click to select those values that contain a reference to the WJView.exe
program.
- On the Edit menu, click
Delete.
- Locate and then click the following registry subkey:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run - Click File, click Export,
select a location to save the file, name the file Run2, and then click
Save.
- Look through the values under Run, and
then click to select those values that contain a reference to the WJView.exe
program.
- On the Edit menu, click
Delete for each value.
- Quit Registry Editor.
Workaround 2: The Couponica program is installed on your computerTo work around this issue, use one of the following methods. Method 1: Use MsconfigTo use Msconfig to work around this issue, follow these steps: - Click Start, click Run, in the Open box, type msconfig, and then click OK.
- On the Startup tab, click to clear the following check boxes:
- Couponica
- couponsandoffers
- websearch
- Click OK to close the System Configuration Utility dialog box.
- Restart your computer.
Method 2: Delete the Couponica foldersIn Windows Explorer, delete the following Couponica folders: - C:\Program Files\Couponica
- C:\Program Files\Websearch
Modification Type: | Minor | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbACWsurvey kberrmsg kbJava kbprb KB831427 kbAudEndUser |
---|
|