summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-01-05 14:20:37 +0100
committerPetr Mrázek <peterix@gmail.com>2017-01-05 14:20:37 +0100
commit0249bd9eea450026c002481dadf945cb0268143f (patch)
tree263c9139d65cb6e00124ff92fb3330c34bc023c2
parente1bd1c614519974d7bfc0efc8dcbfafa9418e2fa (diff)
downloadMultiMC-0249bd9eea450026c002481dadf945cb0268143f.tar
MultiMC-0249bd9eea450026c002481dadf945cb0268143f.tar.gz
MultiMC-0249bd9eea450026c002481dadf945cb0268143f.tar.lz
MultiMC-0249bd9eea450026c002481dadf945cb0268143f.tar.xz
MultiMC-0249bd9eea450026c002481dadf945cb0268143f.zip
NOISSUE default to javaw on Windows
-rw-r--r--api/logic/java/JavaUtils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/logic/java/JavaUtils.cpp b/api/logic/java/JavaUtils.cpp
index 88996e9f..79932eda 100644
--- a/api/logic/java/JavaUtils.cpp
+++ b/api/logic/java/JavaUtils.cpp
@@ -47,7 +47,11 @@ JavaInstallPtr JavaUtils::GetDefaultJava()
javaVersion->id = "java";
javaVersion->arch = "unknown";
+#if defined(Q_OS_WIN32)
+ javaVersion->path = "javaw";
+#else
javaVersion->path = "java";
+#endif
return javaVersion;
}