+ String Os = System.getProperty("os.name");
+ String Arch = System.getProperty("os.arch");
+ // Some OS/Arch may be different between Java and Cmake,
+ // which generated the path
+ if (Os.toLowerCase().startsWith("win"))
+ Os = "Windows";
+ else if (Os.contains("OS X"))
+ Os = "Darwin";
+ if (Arch.equalsIgnoreCase("x86"))
+ Arch = "i386";
+ else if (Arch.equalsIgnoreCase("x86_64"))
+ Arch = "amd64";
+ String Path = "NATIVE/" + Os + "/" + Arch + "/";
+