diff options
author | Robert LU <robberphex@gmail.com> | 2020-07-01 11:50:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-01 11:50:18 +0800 |
commit | 7392242390d9904a4cc2cca8866137db114b5ced (patch) | |
tree | 04a6f08ad5a36f7a74097aaeaa583a04f7f39faf | |
parent | 3573c7f6572d673c298cacc4ab760f5fe2a2836e (diff) | |
download | dcevm-7392242390d9904a4cc2cca8866137db114b5ced.tar.gz dcevm-7392242390d9904a4cc2cca8866137db114b5ced.zip |
support adoptopenjdk
-rw-r--r-- | installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |