--- old/buildSrc/win.gradle 2014-07-21 19:56:01.000000000 +0400 +++ new/buildSrc/win.gradle 2014-07-21 19:56:00.000000000 +0400 @@ -208,7 +208,7 @@ WIN.launcher.compiler = compiler WIN.launcher.ccFlags = ["/nologo", "/W3", "/EHsc", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE", "/DWIN32", "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32", - "/arch:SSE", "/fp:fast", "/O2", "/MD"]; + "/arch:SSE", "/fp:fast", "/O2", "/MT"]; WIN.launcher.linker = linker WIN.launcher.linkFlags = ["/link", "/nologo", "/SUBSYSTEM:WINDOWS", "user32.lib", "shell32.lib", "advapi32.lib"] --- old/modules/fxpackager/src/main/native/launcher/win/WinLauncher.cpp 2014-07-21 19:56:03.000000000 +0400 +++ new/modules/fxpackager/src/main/native/launcher/win/WinLauncher.cpp 2014-07-21 19:56:03.000000000 +0400 @@ -637,7 +637,7 @@ return false; } //make sure msvcr100 is loaded (or we may fail if copy of it is not installed into system) - makeFullFileName(basedir, _T("runtime\\jre\\bin\\msvcr100.dll"), tmpPath, sizeof(tmpPath)/sizeof(TCHAR)); + makeFullFileName(basedir, _T("\\runtime\\jre\\bin\\msvcr100.dll"), tmpPath, sizeof(tmpPath)/sizeof(TCHAR)); msvcrtdll = ::LoadLibrary(tmpPath); } else { if (!getSystemJvmPath(jvmPath, LAUNCHER_MAXPATH)) {