NSTLibrary () { Path lib = PathManager.findBinFile("libnst64.dylib"); assert lib != null : "NST lib missing; bin=" + Arrays.toString(new File(PathManager.getBinPath()).list()); return nstLibrary = Native.load(lib.toString(), NSTLibrary.class, Collections.singletonMap("jna.encoding", "UTF8")); }