add lib prefix to library name to match on windows
This commit is contained in:
parent
6d43e1ccde
commit
6ca8e9a0f7
@ -324,7 +324,12 @@ public final class Loader
|
||||
final String javaHome = System.getProperty("java.home");
|
||||
if (javaHome != null)
|
||||
{
|
||||
final File libFile = new File(javaHome, "lib" + File.separator + System.mapLibraryName(libraryName));
|
||||
final String mappedName = System.mapLibraryName(libraryName);
|
||||
File libFile = new File(javaHome, "lib" + File.separator + mappedName);
|
||||
if (!libFile.exists())
|
||||
{
|
||||
libFile = new File(javaHome, "lib" + File.separator + "lib" + mappedName);
|
||||
}
|
||||
if (libFile.exists())
|
||||
{
|
||||
System.load(libFile.getAbsolutePath());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user