java.lang.UnsatisfiedLinkError

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.

  • GitHub comment 5#244873240
    via GitHub by alebre
    ,
  • GitHub comment 5#126669453
    via GitHub by randomstuff
    ,
  • GitHub comment 5#247854778
    via GitHub by mfrincu
    ,
  • GitHub comment 405#216707045
    via GitHub by saudet
    ,
  • GitHub comment 5#147100271
    via GitHub by str
    ,
  • GitHub comment 5#147101148
    via GitHub by str
    ,
    • java.lang.UnsatisfiedLinkError: /private/var/folders/p0/r77_8vgn3mj0cnt032n6pmyh0000gn/T/simgrid-java-6877511999523621239/libsimgrid-java.dylib: dlopen(/private/var/folders/p0/r77_8vgn3mj0cnt032n6pmyh0000gn/T/simgrid-java-6877511999523621239/libsimgrid-java.dylib, 1): Symbol not found: __ZN7simgrid6kernel7context14ContextFactory14create_maestroENSt3__18functionIFvvEEEPNS_5simix9ActorImplE Referenced from: /private/var/folders/p0/r77_8vgn3mj0cnt032n6pmyh0000gn/T/simgrid-java-6877511999523621239/libsimgrid-java.dylib Expected in: /usr/local/lib/libsimgrid.3.13.90.dylib in /private/var/folders/p0/r77_8vgn3mj0cnt032n6pmyh0000gn/T/simgrid-java-6877511999523621239/libsimgrid-java.dylib at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at org.simgrid.NativeLib.loadLibAsStream(NativeLib.java:122) at org.simgrid.NativeLib.nativeInit(NativeLib.java:58) at org.simgrid.NativeLib.nativeInit(NativeLib.java:49) at org.simgrid.msg.Msg.<clinit>(Msg.java:82) at simulation.Main.main(Main.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    82 more bugmates