PRB: Problem Connecting to Debug Manager in Visual J++

Last reviewed: January 29, 1998
Article ID: Q172201
The information in this article applies to:
  • Microsoft Visual J++, version 1.1

SYMPTOMS

When you try to debug from Visual J++, a dialog box appears with the following message:

   Failed to connect to Java debug manager. Please make sure your JAVA
   components are correctly installed.'

CAUSE

Following are two possible causes for this problem:

  • Two files needed to debug are either missing or not properly registered in the register.
  • DCOM settings have affected the debuggers ability to function.

RESOLUTION

Follow the steps in the MORE INFORMATION section to ensure that these files exist and are properly registered.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base, as it becomes available.

MORE INFORMATION

  1. Open a command prompt and change the current directory to X:\WINDIR\SYSTEM where X is the drive that contains Windows 95 or Windows NT, WINDIR is your Windows directory, and SYSTEM is either SYSTEM for Windows 95 or SYSTEM32 for Windows NT.

  2. Make sure the file Jdbgmgr.exe is located in the directory by typing "DIR JDBGMGR.EXE." If not, see the section below called "Updating the Microsoft VM for Java."

  3. Type "JDBGMGR.EXE /REGSERVER" to add this file's registry entries into the registry. You will not see any feedback.

  4. Change the current directory to X:\DEVSTUDIO\SharedIde\Bin where X is the drive that contains DevStudio and DEVSTUDIO is the directory that DevStudio is installed in.

  5. Make sure the file Cljav.dll is located in the directory by typing "DIR CLJAV.DLL". If not, see the section below called "Copying cljav.dll from the Visual J++ install CD."

  6. Type "REGSVR32.EXE CLJAV.DLL" to add this file's registry entries into the registry. You should see a dialog box that states "DllRegisterServer in Cljav.dll succeeded."

  7. Now run Msdev.exe and debug a Java class. You should not see the problem anymore.

Updating The Microsoft VM for Java

If the Jdbgmgr.exe file is missing from your System directory, please obtain the most recent Microsoft VM for Java by following the directions provided in the following Knowledge Base Article:

   ARTICLE-ID: Q163637
   TITLE: INFO: Availability of Current Build of Microsoft VM for Java

After updating the VM, continue with step 3 from the 'MORE INFORMATION' section, above.

Copying Cljav.dll from the Visualj++ Install CD

If the Cljav.dll file is missing from the Bin directory, you will need to copy this file from the install CD. Explore the install CD and navigate to the Devstudio\Sharedide\Bin directory. If you have VisualStudio97, you will need to insert CD2 and navigate to the VJ1.1\Devstudio\Sharedide\Bin directory. Copy the file Cljav.dll to the directory X:/Devstudio\SharedIde\Bin where X is the drive that contains DevStudio and Devstudio is the directory that DevStudio is installed in. Continue on to step 6 in the MORE INFORMATION section, above.

Check DCOM Settings

If you are using Windows NT 4.0 or Windows 95 with DCOM, check DCOM's configuration tool to see if any registered Java/COM objects have been setup for remote use. If so, turn off these Java/COM objects, reboot, and try debugging. If the debugger works, use the DCOM tool to turn back on the remote Java/COM object and test the debugger again.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/
   http://support.microsoft.com/support/java/


Additional query words: debug manager
Keywords : kberrmsg JVM VJDebug
Technology : internet kbInetDev
Version : WINDOWS:1.1
Platform : WINDOWS
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 29, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.