Skip to content

Commit 489a29e

Browse files
authored
Hardcode more vendors for JVM discovery #651 (#654)
Fixes : #651
1 parent 9b68d32 commit 489a29e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@ private Collection<File> computeCandidateVMs(StandardVMType standardType) {
185185
@SuppressWarnings("nls")
186186
private void computeWindowsCandidates(Collection<File> rootDirectories) {
187187
List<String> progFiles = List.of("ProgramFiles", "ProgramFiles(x86)");
188-
List<String> subDirs = List.of("Eclipse Adoptium", "RedHat", "Java");
188+
/// Could not find directory name for vendors:
189+
/// - Alibaba - instructs to unzip in arbitrary directory
190+
/// - IBM - each product carries its own installation of JDK
191+
/// - SAP - each product carries its own installation of JDK
192+
List<String> subDirs = List.of("Eclipse Adoptium", "RedHat", "Java", "Axiom", "Zulu", "BellSoft", "Microsoft", "Amazon Corretto");
189193
rootDirectories.addAll(
190194
progFiles.stream()
191195
.map(name -> System.getenv(name))

0 commit comments

Comments
 (0)