Skip to content
Snippets Groups Projects
Commit b095cf82 authored by jwallace's avatar jwallace
Browse files

Added file separator while creating tmp path for libraries

parent a3a60c78
No related branches found
No related tags found
No related merge requests found
......@@ -173,6 +173,8 @@ private static String getPlatform() {
os = "win";
} else if(LibraryUtils.isMac()) {
os = "mac";
} else if(LibraryUtils.isLinux()) {
os = "linux";
}
// os.arch represents the architecture of the JVM, not the os
String arch = System.getProperty("os.arch");
......@@ -238,7 +240,7 @@ private static boolean loadLibFromJar(Lib library) {
// copy library to temp folder and load it
try {
java.io.File libTemp = new java.io.File(System.getProperty("java.io.tmpdir") + libName + libExt);
java.io.File libTemp = new java.io.File(System.getProperty("java.io.tmpdir") + java.io.File.separator + libName + libExt);
if(libTemp.exists()) {
// Delete old file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment