Commit 0788e10
committed
Check if the JVM is running before checking version
This commit fixes a bug where we fail to reach the
cjdk fetch code if no JVM is installed first. Specifically,
when `_prepare_to_unlock_modules()` is called it first
tries to collect the major version calling `_guess_java_version()`.
Once here, we hit the try/except and then return on the exception,
instead of hitting the JDK fetch code. All we needed
to do was check if there is a running JVM first. If there
is not, we bypass the try/except and hit cjdk.
Closes #3371 parent 8c408a1 commit 0788e10
1 file changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1708 | 1708 | | |
1709 | 1709 | | |
1710 | 1710 | | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
1720 | 1721 | | |
1721 | 1722 | | |
1722 | 1723 | | |
| |||
0 commit comments