The "Debugger" menu fails to appear on both windows and linux when running Java 8 (Oracle SDK 1.8 on Windows 8.1, Open JDK 8 on Arch Linux). I have fixed this bug by altering the source code.
drjava/src/edu/rice/cs/drjava/model/JDKToolsLibrary.java::121
Append a case for Java version 8 to make adapterForDebugger() compatibel with current and future versions. The code above in adapterForCompiler() is similar and was the inspiration. Here is the full code for adapterForDebugger()
public static String adapterForDebugger(JavaVersion.FullVersion version) {
switch (version.majorVersion()) {
case FUTURE:
case JAVA_8:
case JAVA_7:
case JAVA_6:
case JAVA_5: return "edu.rice.cs.drjava.model.debug.jpda.JPDADebugger";
default: return null;
}
}
I have tested this patch and it fixes the problem on both windows and linux platforms and will know about Mac in a day or so when a colleague checks it.
I am a professor at George Mason University in Virginia and am working with a student on a few other minor updates to DrJava and am curious who to get in touch with about submitting patches and updates.
I received a request from another user asking if a version of Dr Java is available with the above patch applied. There is at the link below. It is not an official version of DrJava but according to the license redistribution of the modified code is fine. Eventually it would be best to merge this and the other minor improvements we have made into the main distribution.
You can find the packaged jar here:
https://cs.gmu.edu/~kauffman/drjava/
A few caveats
- The distribution file is just a .jar; double clicking on windows will execute it though the icons won't look pretty
- Mac users may need to Ctrl-click on the jar and select Open to circumvent OSX's security checks
- Running the Jar on Macs seems to start DrJava as a tiny window to begin with which can be hard to see. Look around for a window which looks like just a titlebar with the close/minimize/maximize buttons and make it larger to see the application