java.lang.reflect.InvocationTargetException

tip

When installing an APK, it automatically extracts the libraries of the right arch type and has them available for System.loadLibrary. But, if you're trying to load a non-standard library, the installer won't know your app has 32bit native code.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Native call
    via yajsw by pinhead0815
    ,
  • Java Error On Startup
    via GitHub by skylabz0rz
    ,
  • UnsatisfiedLinkError on Android 5.0 Lollipop
    via by Unknown author,
  • Missing lib
    via GitHub by Derevko
    ,
    • java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.rzo.yajsw.boot.WrapperExeBooter.main(WrapperExeBooter.java:43) Caused by: java.lang.UnsatisfiedLinkError: /opt/yajsw/yajsw-stable-11.08/tmp/jna-root/jna3083017305408300989.tmp: /opt/yajsw/yajsw-stable-11.08/tmp/jna-root/jna3083017305408300989.tmp: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1953) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1878) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1839) at java.lang.Runtime.load0(Runtime.java:795) at java.lang.System.load(System.java:1061) at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:771) at com.sun.jna.Native.loadNativeLibrary(Native.java:697) at com.sun.jna.Native.<clinit>(Native.java:127) at com.sun.jna.Pointer.<clinit>(Pointer.java:42) at com.sun.jna.PointerType.<init>(PointerType.java:25) at com.sun.jna.ptr.ByReference.<init>(ByReference.java:32) at com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:22) at com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:18) at org.rzo.yajsw.os.posix.PosixProcess.<init>(PosixProcess.java:43) at org.rzo.yajsw.os.posix.OperatingSystemPosix.setWorkingDir(OperatingSystemPosix.java:12) at org.rzo.yajsw.WrapperExe.main(WrapperExe.java:170) ... 5 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    franky lifranky li
    134 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    82 more bugmates