Skip to content

Instantly share code, notes, and snippets.

@enebo
Created March 19, 2020 23:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save enebo/d0bebfc3224cd7fda4d03272858a6734 to your computer and use it in GitHub Desktop.
diff --git a/platformlauncher.cpp b/platformlauncher.cpp
index 8205751..fe54278 100644
--- a/platformlauncher.cpp
+++ b/platformlauncher.cpp
@@ -147,10 +147,8 @@ bool PlatformLauncher::start(char* argv[], int argc, DWORD *retCode, const char*
suppressConsole = false;
} else {
if (jdkhome.empty()) {
- if (!jvmLauncher.initialize(REQ_JAVA_VERSION)) {
- logErr(false, true, "Cannot find Java %s or higher.", REQ_JAVA_VERSION);
- return false;
- }
+ // attempt to get JDK home from registry
+ jvmLauncher.initialize(REQ_JAVA_VERSION);
}
if (!jdkhome.empty()) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment