Skip to content

Commit b2e8e52

Browse files
mickaelistriaSougandhS
authored andcommitted
Add current java.home to detected installations
1 parent 489a29e commit b2e8e52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/DetectVMInstallationsJob.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ private Collection<File> computeCandidateVMs(StandardVMType standardType) {
159159
.collect(Collectors.toSet());
160160

161161
// particular VM installations
162+
String current = System.getProperty("java.home"); //$NON-NLS-1$
163+
if (current != null) {
164+
directories.add(new File(current));
165+
}
162166
String javaHome = System.getenv("JAVA_HOME"); //$NON-NLS-1$
163167
if (javaHome != null) {
164168
directories.add(new File(javaHome));

0 commit comments

Comments
 (0)