尝试在Windows 10上设置LD_LIBRARY_PATH
。在系统变量中将LD_LIBRARY_PATH
设置为C:\Java\Library
:
但是下面的代码不会带来C:\Java\Library
。
lg.info("java.library.path={}",System.getProperty("java.library.path"));
输出:
java.library.path=C:\Java\32\jdk1.8.0_171\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files (x86)/Java/jre1.8.0_171/bin/client;C:/Program Files (x86)/Java/jre1.8.0_171/bin;C:/Program Files (x86)/Java/jre1.8.0_171/lib/i386;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath\New folder;C:\ProgramData\Oracle\Java\javapath\New folder;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\;C:\Program Files (x86)\Skype\Phone\;C:\Users\gedas\AppData\Local\Programs\Python\Python36-32\skip;C:\Users\gedas\AppData\Local\Programs\Python\Python36-32\DLLs\skip;C:\Users\gedas\AppData\Local\Programs\Python\Python36-32\Lib\skip;;C:\Program Files\CMake\bin;D:\CLibs;C:\Program Files\dotnet\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\doxygen\bin;C:\graphviz238\bin;C:\WINDOWS\System32\OpenSSH\;C:\Java\32\jdk1.8.0_171\bin;C:\Java\32\jre1.8.0_171\bin\client;C:\Java\apache-maven-3.6.0\bin;C:\Program Files (x86)\GnuWin32\bin;C:\apache-ant-1.10.5\bin;C:\Program Files (x86)\Notepad++;C:\Program Files\Vim\vim81;C:\Users\gedas\AppData\Local\Microsoft\WindowsApps;;C:\Users\gedas\AppData\Local\Programs\Fiddler;C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\bin;C:\eclipse\eclipse_ide;;.
为什么?