Microsoft KB Archive/814714

= PRB: &quot;Jview.exe Failed to Launch&quot; Error Message When You Debug a Visual J++ Application After You Remove Office XP =

Article ID: 814714

Article Last Modified on 8/15/2005

-

APPLIES TO


 * Microsoft Visual J++ 6.0 Standard Edition
 * Microsoft Visual Studio 6.0 Enterprise Edition
 * Microsoft Visual Studio 6.0 Service Pack 1
 * Microsoft Office XP Standard Edition

-



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 &quot;Symptoms&quot; section.



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

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

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

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

 To restart Machine Debug Manager, type the following commands

net stop mdm

net start mdm


 * 



Steps to Reproduce the Behavior
 Install Visual J++.</li> Install Office XP and the debugger components.</li> Remove Office XP and its components.</li> Start Visual J++.</li> On the File menu, click New Project.</li> For Applications under Visual J++ Projects, click Console Application. Name the project MyTest Application, and then click Open.</li>  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(&quot;Hello&quot;); } } </li> Right-click System at line 17 in Code Editor, and then click Insert Breakpoint.</li> On the Debug menu, click Start.</li></ol>

<div class="references_section">