Fix windows library loading
This commit is contained in:
parent
aca9f66223
commit
e2e6c38652
@ -6,7 +6,7 @@ import java.io.File;
|
|||||||
|
|
||||||
public class LoadLibrary {
|
public class LoadLibrary {
|
||||||
public static InputStream getLibraryAsStream() {
|
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() {
|
private static String getOsName() {
|
||||||
|
Loading…
Reference in New Issue
Block a user