Fixes embedded library name used for extraction in Java (#45)

This commit is contained in:
Thad House
2017-01-09 20:49:02 -08:00
committed by Peter Johnson
parent e9fcb5381a
commit d47bd1ecbc

View File

@@ -34,11 +34,11 @@ public class CameraServerJNI {
resname = "/" + osname + "/" + System.getProperty("os.arch") + "/";
System.out.println("platform: " + resname);
if (osname.startsWith("Windows"))
resname += "cameraserver.dll";
resname += "cscore.dll";
else if (osname.startsWith("Mac"))
resname += "libcameraserver.dylib";
resname += "libcscore.dylib";
else
resname += "libcameraserver.so";
resname += "libcscore.so";
InputStream is = CameraServerJNI.class.getResourceAsStream(resname);
if (is != null) {
// create temporary file