aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert LU <robberphex@gmail.com>2020-07-01 11:50:18 +0800
committerGitHub <noreply@github.com>2020-07-01 11:50:18 +0800
commit7392242390d9904a4cc2cca8866137db114b5ced (patch)
tree04a6f08ad5a36f7a74097aaeaa583a04f7f39faf
parent3573c7f6572d673c298cacc4ab760f5fe2a2836e (diff)
downloaddcevm-7392242390d9904a4cc2cca8866137db114b5ced.tar.gz
dcevm-7392242390d9904a4cc2cca8866137db114b5ced.zip
support adoptopenjdk
-rw-r--r--installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java2
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 {