mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[236461] - Fixed a java patch bug to enable PDA on windows.
This commit is contained in:
parent
e775c4839a
commit
8d3e2ae792
1 changed files with 3 additions and 0 deletions
|
@ -119,6 +119,9 @@ public class PDALaunchDelegate extends LaunchConfigurationDelegate {
|
|||
// Get Java VM path
|
||||
String javaVMHome = System.getProperty("java.home");
|
||||
String javaVMExec = javaVMHome + File.separatorChar + "bin" + File.separatorChar + "java";
|
||||
if (File.separatorChar == '\\') {
|
||||
javaVMExec += ".exe";
|
||||
}
|
||||
File exe = new File(javaVMExec);
|
||||
if (!exe.exists()) {
|
||||
abort(MessageFormat.format("Specified java VM executable {0} does not exist.", new Object[]{javaVMExec}), null);
|
||||
|
|
Loading…
Add table
Reference in a new issue