aboutsummaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorAlexander Hayden <alexhayden25@gmail.com>2021-01-06 00:39:36 -0500
committerAlexander Hayden <alexhayden25@gmail.com>2021-01-06 00:39:36 -0500
commitdd6f9c814aac4079a07ff5f1853d2346bd91e73a (patch)
tree8dcc95b4f2e95e931c65b50cfff73ea4fdac6261 /util.py
parent86fefb8233384825003bd62abd60ec666420063a (diff)
downloadmodpackman-dd6f9c814aac4079a07ff5f1853d2346bd91e73a.tar.gz
modpackman-dd6f9c814aac4079a07ff5f1853d2346bd91e73a.zip
more robust jre findingmodpackman-v2
Diffstat (limited to 'util.py')
-rw-r--r--util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.py b/util.py
index 6d7feed..f48ac2b 100644
--- a/util.py
+++ b/util.py
@@ -94,6 +94,8 @@ def find_jre():
if sys.platform == 'win32': # We can try and use the Minecraft Launcher's integrated JRE on Windows
if os.path.exists("C:\\Program Files (x86)\\Minecraft Launcher\\runtime\\jre-x64\\java.exe"):
return "C:\\Program Files (x86)\\Minecraft Launcher\\runtime\\jre-x64\\java.exe"
+ elif os.path.exists("C:\\Program Files (x86)\\Minecraft Launcher\\runtime\\jre-x64\\bin\\java.exe"):
+ return "C:\\Program Files (x86)\\Minecraft Launcher\\runtime\\jre-x64\\bin\\java.exe"
raise RuntimeError("Unable to detect an installed JRE. Please install Java in order to use modpackman.")