mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 19:35:36 +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
|
// Get Java VM path
|
||||||
String javaVMHome = System.getProperty("java.home");
|
String javaVMHome = System.getProperty("java.home");
|
||||||
String javaVMExec = javaVMHome + File.separatorChar + "bin" + File.separatorChar + "java";
|
String javaVMExec = javaVMHome + File.separatorChar + "bin" + File.separatorChar + "java";
|
||||||
|
if (File.separatorChar == '\\') {
|
||||||
|
javaVMExec += ".exe";
|
||||||
|
}
|
||||||
File exe = new File(javaVMExec);
|
File exe = new File(javaVMExec);
|
||||||
if (!exe.exists()) {
|
if (!exe.exists()) {
|
||||||
abort(MessageFormat.format("Specified java VM executable {0} does not exist.", new Object[]{javaVMExec}), null);
|
abort(MessageFormat.format("Specified java VM executable {0} does not exist.", new Object[]{javaVMExec}), null);
|
||||||
|
|
Loading…
Add table
Reference in a new issue