Skip to content
This repository was archived by the owner on Aug 10, 2025. It is now read-only.

Commit e498852

Browse files
committed
Quick fix for getting the JVM version on 1.8 with OpenJDK
1 parent 0702dca commit e498852

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/getjava.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
jvmVersion = None
77
output = commands.getoutput("java -version")
88

9-
regex = re.compile("java version \"(1\.\d)\..*?\"", re.IGNORECASE)
9+
regex = re.compile("(?:java|openjdk) version \"(1\.\d)\..*?\"", re.IGNORECASE)
1010
m = regex.search(output)
1111
if m: jvmVersion = m.group(1)
1212

0 commit comments

Comments
 (0)