android - JNI: cannot find library in java.library.path when running JUnit -


i using junit test android program uses jni , depends on multiple .so files in same folder. when run unit tests call

system.loadlibrary("name")  

this statement throws following error:

unsatisfiedlinkererror: no libname in java.library.path 

based on answers other questions, decided try adding

-djava.library.path=path/to/libs 

as argument emulator. did not anything. had program print value of java.library.path, , included correct path library, somehow still threw unsatisfiedlinkerror. can conclude strange happening result of running junit, when run program (as android application), have no such errors. what's going on?


Comments

Popular posts from this blog

Linux vanilla kernel on QEMU and networking with eth0 -

rdbms - what exactly the undo information lives in oracle? -

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -