logic: using javapath on windows fix
* fixed usage of javapath on windows: search in provided path before resorting to content of path variable
This commit is contained in:
@@ -38,7 +38,7 @@ void JavaEnvironmentFactory::createInstance(std::string classPath)
|
||||
std::string oldPathContent = getenv("path");
|
||||
|
||||
std::string javapath = ApplicationSettings::getInstance()->getJavaPath() + "/";
|
||||
putenv(("path=" + oldPathContent + ";" + javapath).c_str()); // path env is only modified in the scope of this process.
|
||||
putenv(("path=" + javapath + ";" + oldPathContent).c_str()); // path env is only modified in the scope of this process.
|
||||
|
||||
javaFound = FileSystem::exists(javapath + "jvm.dll");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user