java.lang.UnsatisfiedLinkError

/Users/XXX/example/libjnidb4java.a: dlopen(/Users/XXX/example/libjnidb4java.a, 1): no suitable image found. Did find: /Users/XXX/example/libjnidb4java.a: unknown file type, first eight bytes: 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A

Samebug tips1

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web7187

  • /Users/XXX/example/libjnidb4java.a: dlopen(/Users/XXX/example/libjnidb4java.a, 1): no suitable image found. Did find: /Users/XXX/example/libjnidb4java.a: unknown file type, first eight bytes: 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A
  • via Stack Overflow by hein
    , 10 months ago
    /Users/hein/Downloads/jmagick-linux-6.4.0-Q32/libJMagick-6.4.0.so: dlopen(/Users/hein/Downloads/jmagick-linux-6.4.0-Q32/libJMagick-6.4.0.so, 1): no suitable image found. Did find: /Users/hein/Downloads/jmagick-linux-6.4.0-Q32/libJMagick-6.4.0.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x01 0x01 0x01 0x00
  • via Google Groups by Slash, 1 month ago
    /Users/dirk/ Downloads/roguelikes/castlevania/cvrl061/lib/libjcurses.so: no suitable image found. Did find: /Users/dirk/Downloads/roguelikes/ castlevania/cvrl061/lib/libjcurses.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x01 0x01 0x01 0x00
  • Stack trace

    • java.lang.UnsatisfiedLinkError: /Users/XXX/example/libjnidb4java.a: dlopen(/Users/XXX/example/libjnidb4java.a, 1): no suitable image found. Did find: /Users/XXX/example/libjnidb4java.a: unknown file type, first eight bytes: 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086)

    Write tip

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

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 years ago
    Once, 3 weeks ago
    Unknown user
    Once, 7 months ago
    Unknown user
    Once, 8 months ago
    83 more bugmates