java.lang.UnsatisfiedLinkError: /tmp/swoval-jni/3420376823213852814-libswoval-files0.so

Hello gatling Users

I am running my tests from Linux , but hitting into below issue :

Compilation crashed

java.lang.UnsatisfiedLinkError: /tmp/swoval-jni/3420376823213852814-libswoval-files0.so: /tmp/swoval-jni/3420376823213852814-libswoval-files0.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)

at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2430)

at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2487)

at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2684)

at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2617)

at java.base/java.lang.Runtime.load0(Runtime.java:767)

at java.base/java.lang.System.load(System.java:1831)

at com.swoval.runtime.NativeLoader.loadPackaged(NativeLoader.java:140)

at com.swoval.runtime.NativeLoader.loadPackaged(NativeLoader.java:171)

at com.swoval.files.NativeDirectoryLister.(NativeDirectoryLister.java:32)

… 38 common frames omitted

Due to restricted sytem access , tmp does not have exec permisison . Is there a way this can be resolved . i am using 3.3.1 / 3.1.3 version of gatling .

i have done whats mentioned in this post https://groups.google.com/forum/#!topic/gatling/Gj4EdAEoq-E with reference to setting up new path .

Thanks

Try setting the “swoval.tmpdir” System property to the absolute path of a directory that’s not mounted as noexec.

Thanks Stephane for quick responses . It worked . For any one who might face this issues see below for what i did in bin dir of gatling bundle .

`

JAVA_OPTS="-Djna.tmpdir=$HOME/tmp -Dswoval.tmpdir=$HOME/tmp" ./gatling.sh

`