We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b66fc06 commit 5b6195aCopy full SHA for 5b6195a
src/scyjava/_jvm.py
@@ -98,6 +98,7 @@ def jvm_version() -> str:
98
except subprocess.CalledProcessError as e:
99
raise RuntimeError("System call to java failed") from e
100
101
+ output = output.replace('\n', ' ').replace('\r', '')
102
m = re.match('.*version "(([0-9]+\\.)+[0-9]+)', output)
103
if not m:
104
raise RuntimeError(f"Inscrutable java command output:\n{output}")
0 commit comments