1
0
Fork 0
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:
Pawel Piech 2008-06-13 21:23:42 +00:00
parent e775c4839a
commit 8d3e2ae792

View file

@ -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);