mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert "IDEA-200887 "Failed to load JVM DLL" on a fresh copy of Windows 10"
This reverts commit e99a50b1 This commit has broken PATH handling on Windows when PATH was longer than _MAX_PATH characters. GitOrigin-RevId: c59be40f87c07b0c651aafdbd50f7f55fb6619b6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
842e4283c8
commit
795e0f03d4
Binary file not shown.
Binary file not shown.
@@ -575,12 +575,6 @@ bool LoadVMOptions()
|
||||
if (!AddClassPathOptions(vmOptionLines)) return false;
|
||||
std::string dllName(jvmPath);
|
||||
std::string binDirs = dllName + "\\bin;" + dllName + "\\bin\\server";
|
||||
char pathEnvVarName[_MAX_PATH];
|
||||
if (GetEnvironmentVariableA("PATH", pathEnvVarName, _MAX_PATH -1 ))
|
||||
{
|
||||
binDirs = binDirs + ";" + pathEnvVarName;
|
||||
SetEnvironmentVariableA("PATH", binDirs.c_str());
|
||||
}
|
||||
vmOptionLines.push_back(std::string("-Djava.library.path=") + binDirs);
|
||||
AddPredefinedVMOptions(vmOptionLines);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user