From 7392242390d9904a4cc2cca8866137db114b5ced Mon Sep 17 00:00:00 2001 From: Robert LU Date: Wed, 1 Jul 2020 11:50:18 +0800 Subject: [PATCH] support adoptopenjdk --- .../main/java/com/github/dcevm/installer/ConfigurationInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java b/installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java index 18a2e558..cd71d265 100644 --- a/installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java +++ b/installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java @@ -268,7 +268,7 @@ public enum ConfigurationInfo { } public String getJavaVersion(Path jreDir) throws IOException { - return getVersionHelper(jreDir, ".*java version.*\"(.*)\".*", true, false); + return getVersionHelper(jreDir, ".*(?:java|openjdk) version.*\"(.*)\".*", true, false);; } final public String getDCEVersion(Path jreDir, boolean altjvm) throws IOException { -- 2.39.5