Fix windows library loading

This commit is contained in:
Andrea Cavalli 2020-11-09 20:52:26 +01:00
parent aca9f66223
commit e2e6c38652

View File

@ -6,7 +6,7 @@ import java.io.File;
public class LoadLibrary {
public static InputStream getLibraryAsStream() {
return LoadLibrary.class.getResourceAsStream(File.separatorChar + "libs" + File.separatorChar + getOsName() + File.separatorChar + getArchName() + File.separatorChar + getFileName() + getExtension());
return LoadLibrary.class.getResourceAsStream("/libs/" + getOsName() + "/" + getArchName() + "/" + getFileName() + getExtension());
}
private static String getOsName() {