diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/DetectVMInstallationsJob.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/DetectVMInstallationsJob.java index 4ffe57bfbf..140005b6f9 100644 --- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/DetectVMInstallationsJob.java +++ b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/DetectVMInstallationsJob.java @@ -159,6 +159,10 @@ private Collection computeCandidateVMs(StandardVMType standardType) { .collect(Collectors.toSet()); // particular VM installations + String current = System.getProperty("java.home"); //$NON-NLS-1$ + if (current != null) { + directories.add(new File(current)); + } String javaHome = System.getenv("JAVA_HOME"); //$NON-NLS-1$ if (javaHome != null) { directories.add(new File(javaHome));