diff --git a/Ghidra/Debug/Debugger-gadp/src/main/java/ghidra/dbg/gadp/server/AbstractGadpLocalDebuggerModelFactory.java b/Ghidra/Debug/Debugger-gadp/src/main/java/ghidra/dbg/gadp/server/AbstractGadpLocalDebuggerModelFactory.java index fe9c228ea0..9034efe5ee 100644 --- a/Ghidra/Debug/Debugger-gadp/src/main/java/ghidra/dbg/gadp/server/AbstractGadpLocalDebuggerModelFactory.java +++ b/Ghidra/Debug/Debugger-gadp/src/main/java/ghidra/dbg/gadp/server/AbstractGadpLocalDebuggerModelFactory.java @@ -113,8 +113,11 @@ public abstract class AbstractGadpLocalDebuggerModelFactory implements DebuggerM try { ProcessBuilder builder = new ProcessBuilder(); List cmd = new ArrayList<>(); - cmd.add("java"); - cmd.addAll(List.of("-cp", System.getProperty("java.class.path"))); + String javaCommand = System.getProperty("java.home") + File.separator + "bin" + + File.separator + "java"; + cmd.add(javaCommand); + cmd.add("-cp"); + cmd.add(System.getProperty("java.class.path")); if (jdwpPort >= 0) { cmd.add("-agentlib:jdwp=server=y,transport=dt_socket,address=" + jdwpPort + ",suspend=" + (jdwpSuspend ? "y" : "n"));