Hi all,
I'm currently working under a Linux environment with /tmp mounted with an "no-exec" option. I think this has prevented JNA's initialization from working properly. Specifically, I'm seeing this exception when executing my code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/jna--1427646616/jna3059406617541829784.tmp: /tmp/jna--1427646616/jna3059406617541829784.tmp: failed to map segment from shared object: Operation not permitted
I was able to get around the problem at this point by specifying "-Djava.io.tmpdir=<some other directory>" when I start JVM, but is there any way I can specify a different tmp directory just for JNA, that doesn't affect the entire JVM? Maybe through another system property, or some other magic? I wasn't able to find any related properties in the documentation.
Thanks very much in advance!
Best,
Eugene