PRB: "Jview.exe Failed to Launch" Error Message When You Debug a Visual J++ Application After You Remove Office XP (814714)



The information in this article applies to:

  • Microsoft Visual J++ 6.0
  • Microsoft Visual Studio, Enterprise Edition 6.0
  • Microsoft Visual Studio 6.0 SP1
  • Microsoft Office XP

SYMPTOMS

When you remove Office XP from your computer, and then you try to debug a Visual J++ application, you may receive the following error message:
Application 'C:\WINDOWS\System32\jview.exe' failed to launch

CAUSE

Microsoft Visual J++ uses Vs7jit.exe to debug your Visual J++ application. However, when you remove Office XP, Vs7jit.exe is removed from your computer. However, Machine Debug Manager (Mdm.exe) is not removed.

Because the Visual J++ application tries to locate Vs7jit.exe to start a new debugging session, you receive the error message as mentioned in the "Symptoms" section.

RESOLUTION

To resolve this problem, follow these steps:
  1. Copy Vs7jit.exe from the Office XP installation CD-ROM to the following folder:

    C:\Program Files\Common Files\Microsoft Shared\VS7Debug

  2. Start a command prompt.
  3. To register Vs7jit.exe, type the following command, and then press ENTER:

    c:\Program Files\Common Files\Microsoft Shared\VS7Debug\VS7JIT.EXE /regserver

  4. To restart Machine Debug Manager, type the following commands

    net stop mdm

    net start mdm

    :

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Install Visual J++.
  2. Install Office XP and the debugger components.
  3. Remove Office XP and its components.
  4. Start Visual J++.
  5. On the File menu, click New Project.
  6. For Applications under Visual J++ Projects, click Console Application. Name the project MyTest Application, and then click Open.
  7. For Class1.java, replace the existing code with following sample code:
    /**
     * This class can take a variable number of parameters on the command
     * line. Program execution begins with the main() method. The class
     * constructor is not invoked unless an object of type 'Class1' is
     * created in the main() method.
     */
    public class Class1
    {
    	/**
    	 * The main entry point for the application. 
    	 *
    	 * @param args Array of parameters passed to the application
    	 * through the command line.
    	 */
    	public static void main (String[] args)
    	{
    		System.out.println("Hello");
    	}
    }
  8. Right-click System at line 17 in Code Editor, and then click Insert Breakpoint.
  9. On the Debug menu, click Start.

REFERENCES

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

321410 OFF: How to Turn Off Machine Debug Manager, Mdm.exe


Modification Type:MinorLast Reviewed:8/15/2005
Keywords:kberrmsg kbsetup kbJava kbDebug kbprb KB814714 kbAudDeveloper