Graceful fallback when /tmp is amounted noexec on Linux

Fixes #260
This commit is contained in:
Andrew Steinborn
2019-11-29 12:03:38 -05:00
parent 667610c251
commit 2f55912995

View File

@@ -38,7 +38,12 @@ public class Natives {
// Well, it doesn't matter...
}
}));
try {
System.load(tempFile.toAbsolutePath().toString());
} catch (UnsatisfiedLinkError e) {
throw new NativeSetupException("Unable to load native " + tempFile.toAbsolutePath(), e);
}
} catch (IOException e) {
throw new NativeSetupException("Unable to copy natives", e);
}