aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Dvorak <lada.dvorak7@gmail.com>2020-07-01 07:08:04 +0200
committerGitHub <noreply@github.com>2020-07-01 07:08:04 +0200
commitf7efb882d7651d401b6a91d1a60507d09c66b8a6 (patch)
tree04a6f08ad5a36f7a74097aaeaa583a04f7f39faf
parent3573c7f6572d673c298cacc4ab760f5fe2a2836e (diff)
parent7392242390d9904a4cc2cca8866137db114b5ced (diff)
downloaddcevm-f7efb882d7651d401b6a91d1a60507d09c66b8a6.tar.gz
dcevm-f7efb882d7651d401b6a91d1a60507d09c66b8a6.zip
Merge pull request #186 from RobberPhex/adoptopenjdk
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 {