Hi, I'm getting set up for Fall and notice that on all the machines here in the lab, starting with the release from last December, the debugger is no longer active. The current stable version works, but the development version does not show the Debugger menu and says that the debugger is not active in Preferences. We are running with the JDK and the Interactions Pane shows the compiler using tools.jar from the JDK folder. Manually setting tools.jar has no effect.
--Steve Gilbert
We cannot attempt to fix this bug without more information. Please post another comment detailing what you were doing to cause this to happen. If you have it, please include the information you can get by pressing the "More Information" button in the DrJava error window.
Thanks,
The DrJava Team
I've continued to investigate, tracing through the source code. In the DefaultGlobalModel constructor where it loops through each of the libraries it finds, it correctly finds both the JDK5 and JDK6 on my machine, but reports the Debugger is not available. Tracing into JDKToolsLibrary, around line 158 where it attempts to create the Debugger object using reflection, the NoClassDefFoundError is thrown for com.sun.jdi.VMDisconnectedException.
--Steve
Thanks for your help already, Stephen. Can you please still post the information contained in the System Properties?
You can get the text by clicking on Help, About DrJava, and then pressing the "Copy System Properties" button.
I think I found the problem. I'll have a new version out by the end of tomorrow.
Fixed as of revision 5434:
Method to get debugger adapter in JDKDescriptor was misspelled.
Please check if this build fixes the problem:
http://www.cs.rice.edu/~javaplt/drjavarice/weekly/files/drjava-weekly-20110727-r5434.jar
Hi; yes, that fixes the problem. I never would have found it. Thanks.
--Steve
This bug is back alive when running Java8:
https://sourceforge.net/p/drjava/bugs/955/
a private fix is offer.
Last edit: Lean Wang 2015-10-07